Commit Graph

246 Commits

Author SHA1 Message Date
Markus Heidelberg
98f4b1503e
Fix GCC compile errors under Linux due to case sensitivity in #include
Closse #7528
2019-11-13 01:46:05 +01:00
Scott Sumner
bdd9acb0f5
Make end-of-line conversion operations macroable
Fix issue to make end-of-line conversion operations macroable

Fix #6258, close #7516
2019-11-07 22:29:21 +01:00
Christian Grasser
c741f83bde
Update makefile for mingw gcc builds
Close #4145
2019-11-07 22:13:47 +01:00
Don HO
5cf296ee10
Remove Author from About and add Online Document to menu
Remove Author link from About dialog and add Online Document link to menu
2019-10-05 17:07:39 +02:00
Don HO
fcaef73769
Fix macro playback crash issue
The crash issue is due to a mutex locked twice which should be a dead lock but a "device or resource busy" exception is lauched:
https://stackoverflow.com/questions/16664375/why-locking-a-stdmutex-doesnt-block-the-thread

From 7.8 the standard mutex is used, that changes the behaviour.
2019-10-02 03:18:31 +02:00
Don HO
581aff630a
Use standard C++11 mutex
And remove unecessary files

Close #6093
2019-08-25 23:34:30 +02:00
Don HO
06db9ee338
Code improvement for NppParameters 2019-08-14 22:13:24 +02:00
Don HO
bbc55d06f2
Code improvement for WcharMbcsConvertor 2019-08-14 01:54:56 +02:00
Don HO
2c764d7221
Code improvement for FileManager 2019-08-14 01:32:01 +02:00
Don HO
48f83a9d0f
Code improvement for EncodingMapper 2019-08-14 01:15:08 +02:00
Scott Sumner
0922512eb3
Make "Remove Consecutive Duplicate Lines" to be macro recordable
Fix #6023, close #6024
2019-08-10 13:29:00 +02:00
Waldi Ravens
2a7a35a4a3
Make "Command Argument Help" MessageBox modal
Fix #4067, close #6027
2019-08-10 13:21:46 +02:00
Scott Sumner
61abf06bf3
Make 'Clear all marks' and 'Inverse Bookmark' macroable
Fix #1948, close #5995
2019-08-03 16:26:25 +02:00
Don HO
e50236f559
Remove redundant information in File Summary dialog
Update Chinese & French binary translation as well.
2019-07-27 11:03:14 +02:00
Christian Grasser
418d03acfe
Add capabilty to translate file summary dialog info
Close #5594, fix #1487
2019-07-27 10:33:51 +02:00
briddums
fa254e579c
Fix an issue in IDM_EDIT_CLEARREADONLY
Using ^= for the readonly attribute will cause it to always change the bit.  So if CLEARREADONLY is called on a file that isn't read only, the file will become read only.

Fix #5768, close #5774
2019-06-20 20:32:14 +02:00
dail8859
492870be0b Use SCI_TARGETWHOLEDOCUMENT and SCI_COUNTCHARACTERS 2019-05-25 14:50:30 -04:00
Jon Bockhorst
b75ccd29e2
Added close unchanged tabs command
Close #5185, close #5007
2019-03-26 13:11:15 +01:00
Don HO
1360ff82ba
Revert "Add "Multi-Select Next Occurence" feature"
The current commit contain unstable behaviour and could lead to crash.
OTOH Update Scintilla component will get the same feature. So Scintilla will be updated in short term.

This reverts commit 455fcb2da4.
2019-03-21 23:40:59 +01:00
Don HO
a7c59e1776
Add "Multi-Select Next Occurrence" into menu
Update localization files
2019-03-19 02:52:13 +01:00
jmbockhorst
455fcb2da4
Add "Multi-Select Next Occurence" feature
* Added Ctrl+Shift+D to select next occurence of selection
* Left and right movement works for multiple cursors
* Enter/return a new line works for multiple cursors

Close #5322, close #5399
2019-03-18 23:09:01 +01:00
Don HO
0c5a42153b
Remove unecessary cast 2019-03-18 09:45:25 +01:00
Don HO
6dfd22d52f
Add "View Current File in Browser" for Firefox, Chrome, IE & Edge
Restore deleted "Launch in browser" customized shorcuts in [EU-FOSSA] by implementing them in more secure way.
2019-03-16 04:19:02 +01:00
Don HO
5356f648c2
Remove some ugly coding styles 2019-03-13 02:02:35 +01:00
Don HO
3f5f69c6a6 [EU-FOSSA] Enhance external call code to avoid eventual arbitrary commands execution 2019-03-10 23:27:05 +01:00
Don HO
94c4608cc1 Fix a typo & add some comments 2019-03-01 13:35:26 +01:00
Pavel Nedev
1dfa92c4b7 Add 'Open Plugins Folder...' command
Closes #5224, closees #5225
2019-03-01 01:03:34 +01:00
Don HO
3baef49079 Add SHA256 checking of the authentity of used modules
In order to remove the code signing certificate dependency, SHA256 checking of the authentity of used modules (Scilexer.dll, GUP.exe and nppPluginList.dll) is added.
See the followling link for the detail information:
https://notepad-plus-plus.org/community/topic/17184/remove-code-signing-from-notepad
2019-02-27 10:14:36 +01:00
Don HO
da2d14436c [EU-FOSSA] Enhance the macroable detection to avoid crash 2019-02-24 11:34:27 +01:00
Don HO
4472620f30 Remove "Get More Plugins" menu item 2019-02-20 09:46:17 +01:00
Don HO
b90be4a05b [EURO-FOSSA] Fix a vunerability from "Search on Internet" command
Restrict the usage of customized search engine on only "http://" or "https://" url schema to avoid whatever application can be launched via "Search on Internet" command.
2019-02-20 00:34:28 +01:00
Don HO
5bcf55c59e Add stackoverflow as search engine 2019-02-19 13:05:02 +01:00
Don HO
501980782f [EU-FOSSA] Check Updater's certificate before launching it 2019-02-13 19:39:39 +01:00
Don HO
7fe3cda1d0 [EU-FOSSA] Use wcscpy_s instead of lstrcpy to prevent from buffer overflow 2019-02-11 02:07:04 +01:00
Don HO
51f10bdba5 Add "Remove Duplicate Lines" feature
Remove duplicate consecutive lines from whole document.
2019-02-01 01:00:36 +01:00
Don HO
0f936707a2 [EU-FOSSA] Fix a security issue: RCE via unsanitized command line in "Open containing folder"
Summary of the Issue:
A remote code execution (RCE) vulnerability was found when a user opens a crafted containing folder in the command line. Code execution is possible by injecting a & followed by system commands into the name of the folder.

Steps to reproduce:
Download the attached archive on Windows: unzip_me.zip (F404758)
Unzip it and navigate into it
Open the txt file inside with Notepad++
Go to File -> Open containing folder -> cmd

Impact statement:
Successful exploitation of this vulnerability would allow an attacker to remotely execute arbitrary commands on the victim's computer.
2019-01-14 20:20:19 +01:00
Don HO
953919c406 Make new added SHA-256 hash features translatable 2018-12-26 00:06:04 +01:00
Don HO
647651b7ee Add generation of SHA-256 hash feature 2018-12-16 20:14:30 +01:00
Kovra
4f67c09859 Make text display right in summary panel
Close #5037

User @buggalicious found the summary text is displaying a count of characters without line endings not blanks.
Patch should address #3849 by updating the text to describe what is actually being counted.
2018-12-03 03:09:31 +01:00
Don HO
78a0f57ed1 Make Plugins Admin translatable 2018-11-27 13:12:56 +01:00
Don HO
f03ce289d3 Fix "Import plugins" not working issue. 2018-11-17 19:01:24 +01:00
Don HO
17ac06f83a Fix a regression of fail removing different architecture plugins 2018-11-12 03:37:42 +01:00
Don HO
519fecbb82 Add SHA-256 implementation and use sha-256 instead of md5 in Plugin Admin 2018-10-24 09:45:35 +02:00
Chris Cammack
fe458a7072 Fix hanging problem while switching back a fully-folded document by using shortcut (Ctrl-TAB)
Use the _isFolding flag to avoid expensive redundant operations that cause an apparent hang when opening or switching tabs to a large fully-folded file.

The released version of Notepad++ uses the _isFolding flag to avoid expensive redundant operations when switching to a fully-folded tab using the mouse pointer.

However, opening a fully-folded file or switching to a fully-folded tab with the keyboard can produce a delay so long that Notepad++ appears to hang forever.

The hang is 100% reproducible and can be demonstrated in less than 60 seconds:

Download a deeply-nested file such as https://raw.githubusercontent.com/notepad-plus-plus/notepad-plus-plus/master/PowerEditor/src/Parameters.cpp or https://github.com/notepad-plus-plus/notepad-plus-plus/files/1555939/nppTest.zip
Open the file in Notepad++ and fold it using Alt-0
Create a new empty tab
Switch back and forth between tabs using the mouse, which is fast
Switch back and forth between tabs using the keyboard (Ctrl-Tab, Ctrl-Page(Up|Down), Ctrl-NumPad[0-9]), which will hang
This pull request applies the existing _isFolding flag to the forgotten keyboard and file open operations and prevents the hang caused by opening or switching tabs to a fully-folded file.

Fix #3996, fix #1128, fix #1806, fix #4871
Close #4867
2018-10-07 23:42:47 +02:00
Rajendra Singh
efbc3b2160 Fix Tail moniotoring incoherent status after deleting a monitored file
Steps to Reproduce the Issue:

1. Open two files a.txt (first tab) and b.txt (second tab)
2. Start tail monitoring for a.txt (first tab) and activate b.txt (second tab)
3. Now delete a.txt from the explorer
4. Come back to notepad++
5. Observe the behavior now

Unexpected Behavior:

At step 4, if user choose to keep the file, a.txt is still marked as monitoring. As soon as del action occurs, b.txt automatically comes under "tail monitoring".
If user choose to remove file, a.txt should be removed from the notepad. This is absolutely fine.

Fix #4750, close #4751
2018-10-05 23:49:55 +02:00
Pavel Nedev
abc6bc144b Fix possible file corruption during backup or power loss or other abnormal N++ termination
Fixes #240, Fixes #2381, Fixes #2883, Fixes #4346, Fixes #4655 and probably more issues related to loss of data.
Close #4803
2018-10-03 01:42:57 +02:00
Don HO
eb4edb50ef Plugin Admin - in progress 2018-07-19 02:03:17 +02:00
Silent
a9d203a60a Deprecate wstat/stat in favour of WinAPI GetFileAttributesEx - unifies code and behaviour between Windows versions
Fixes #4491, fixes #3969, fixes #2535, fixes #215, close #4541
2018-06-25 00:33:09 +02:00
Silent
08eb29e3d6 Force cpp standard const char pointer on string literals
const-ified all string literals to suppress warnings on gcc and allow /Zc:strictStrings to be used with Visual Studio

Fix #4146, close #4150
2018-06-25 00:06:26 +02:00
Don HO
593cf451fb Clean up 2018-06-24 01:16:01 +02:00