Commit Graph

218 Commits (f0a8c61d0748f682573cfd719a30863854f98c80)

Author SHA1 Message Date
Don HO abcbec181a Change the EOL 2018-02-27 01:18:00 +01:00
Silent 16fa79f057 Warning/error fixes as per VS2017 code analysis
Closes #4154
2018-02-19 12:21:35 +01:00
Christophe Meriaux 360d45db1a Add filter capacity in the shortcut mapper
Closes #4096, closes #2562
2018-02-11 16:37:30 +01:00
Silent 683c358e8a Fix 2 different files whose canonic names are the same can't be opened
in the same time issue

Fix Unicode file name comparision to match Windows behaviour (as opposed to doing a linguistic filename comparision)

Fixes #3820, closes #4141
2018-02-04 04:26:52 +01:00
SinghRajenM fcb3ce31a0 Code improvement
Closes #4085
2018-01-28 23:22:47 +01:00
Don HO 2390b19706 Fix a crash bug due to eventual disordered notifications sent to plugins
The Access Violation while closing Notepad++:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3961
could be due to SCN_UPDATEUI sending after NPPN_SHUTDOWN, that makes
plugins treat SCN_UPDATEUI on the released handle.

To avoid such situation, once NPPN_SHUTDOWN has been sent, no more
message will be sent to plugin.

Fixes #3961, fixes #4021
2017-12-27 18:19:01 +01:00
Oleksandr Redko bdcc386a3a Fix static analyzer issue "An exception should be caught by reference"
V746 Object slicing. An exception should be caught by reference rather than by value. filedialog.cpp 183
V746 Object slicing. An exception should be caught by reference rather than by value. nppbigswitch.cpp 110
V746 Object slicing. An exception should be caught by reference rather than by value. pluginsmanager.cpp 259
2017-10-29 18:18:00 +02:00
SinghRajenM 3cb8bc85a1 Fix certificate checking error message issue
1. Fixed issue (caption and message are interchanged)
2. Disabled lexerdll signature checking in debug mode

Closes #3691, Fix #3688
2017-09-17 01:16:47 +02:00
Thomas Linder Puls 854acae4a1 Add Visual Prolog language support
Closes #1439
2017-08-25 09:43:36 +02:00
SinghRajenM d5b01d61b8 Improve file extension movement between ListBox in Preferences dialog
Now mouse double click can be used to move File extension between ListBoxes.

Closes #3595
2017-08-21 02:35:57 +02:00
SinghRajenM 295cbafe7d Code improvement
Closes #3582
2017-08-13 12:10:04 +02:00
Cyrillev fbbe9344d9 New feature: Opens file in its default viewer
This feature has the same effect as double-clicking this file in Windows Explorer.

Closes #3577, fixes #3576
2017-08-13 12:04:00 +02:00
Cyrillev 02bdd11700 Add new languages support
Connect Scintilla Lexers to npp : SCLEX_ASN1 (Abstract Syntax Notation One), SCLEX_AVS (AviSynth), SCLEX_BLITZBASIC, SCLEX_PUREBASIC, SCLEX_FREEBASIC, SCLEX_CSOUND, SCLEX_ERLANG, SCLEX_ESCRIPT, SCLEX_FORTH, SCLEX_LATEX, SCLEX_MMIXAL, SCLEX_NIMROD, SCLEX_NNCRONTAB, SCLEX_OSCRIPT, SCLEX_REBOL, SCLEX_REGISTRY, SCLEX_RUST, SCLEX_SPICE, SCLEX_TXT2TAGS

Connect Scintilla Lexers to npp :

asn1 (Abstract Syntax Notation One) : https://fr.wikipedia.org/wiki/ASN.1#Exemple
avs (AviSynth) : http://avisynth.nl/index.php/Script_examples
blitzbasic : http://www.blitzbasic.com/bmdocs/command.php?name=Mid&ref=2d_cat
http://www.blitzbasic.com/codearcs/codearcs.php?cat=8"
csound : http://www.csounds.com/manual/html/PrefaceGettingStarted.html
erlang : http://erlang.org/doc/man/file.html
http://erlang.org/documentation/doc-5.3.6.13/doc/getting_started/getting_started.html"
escript : http://erlang.org/doc/man/escript.html
forth : http://wiki.c2.com/?ExampleForthCode
freebasic : http://www.freebasic.net/
latex : http://physics.clarku.edu/sip/tutorials/TeX/intro.html (Sample LaTeX file)
mmixal : http://mmix.cs.hm.edu/examples/hello.html
nimrod : http://www.csse.monash.edu.au/~nimrod/nimrodportal/manual/planfileexamples.shtml
nncrontab : http://www.nncron.ru/help/EN/working/cron-format.htm
oscript : http://www.oscriptadventures.com/
purebasic : https://www.purebasic.com/documentation/reference/ide_form.html
rebol : http://www.rebol.net/cookbook/recipes/0031.html
registry : windows registry file
rust : http://rustbyexample.com/std_misc/file/open.html
spice : http://www.seas.upenn.edu/~jan/spice/spice.overview.html
txt2tags : https://github.com/txt2tags/txt2tags/blob/master/samples/sample.t2t
2017-07-23 10:24:53 +02:00
Don HO 4c2e41b649 Plugin name should match to plugin folder name
Load plugin only when plugin name match to plugin folder name.
For example: "NppPluginDemo.dll" can be loaded only when it in the
folder named "NppPluginDemo".
2017-07-10 19:26:22 +02:00
Don HO 2c9f096d6d Make plugins loadable from %LOCALAPPDATA%\Notepad++\plugins\ 2017-07-09 15:56:18 +02:00
Don HO c8969b773f Add SWIFT language support 2017-06-17 20:03:28 +02:00
Don HO 6f84824c2b Fix verifying certificate function passes empty string to compare
For unknown reason, all strings passed by parameters are empty string,
use the macros solve this problem.
2017-06-15 02:25:25 +02:00
Svyatoslav 39b2386b33 Fixes identical sub-expressions for certificate verification
An issue has been found by using PVS-Studio analyzer.

Analyzer warning: V501 There are identical sub-expressions to the left
and to the right of the '!=' operator: subject != subject.

Closes #3399
2017-06-15 01:13:34 +02:00
Roman Artiukhin e8e325b7c1 Fixed Toolbar initialization code
It seems REBARBANDINFO.cbSize initialization logic got broken after
migration to VS 2013 (last working version - 6.6.9)

That leads to various problems related to toolbar logic (like missing
chevron - #3385 or incorrect plugin toolbar placement #3094)

Closes #3386, fixes #3385, fixes #3094
2017-06-12 01:09:58 +02:00
Don HO 8dbd956344 Disable the certification chain verification
WinTrust library checks chain of trust on line which makes Notepad++
hanging due to the Firewall's restriction.
2017-05-16 19:50:22 +02:00
Don HO bfb672d8bb A small modification regarding the certificate checking function 2017-05-10 18:14:27 +02:00
Don HO e2329fd15c Improve certificate verifying method 2017-05-10 02:12:10 +02:00
Don HO 76395bb5e5 Add copyright information 2017-05-08 03:27:32 +02:00
Don HO 6b0a3c8e6b Enhance certificate check 2017-05-08 00:19:56 +02:00
SinghRajenM fe45f2e9b1 Remove duplicate code for checking certificate
Closes #3076
2017-03-25 14:17:33 +01:00
Damien Gerard 6947bf3909 winmain: add newline at the end of file
winmain: move local functions to anonymous namespace
winmain: remove redundant static keyword
winmain: add newline at the end of file
winmain: move UAC related code to anonymous function
winmain: declare MSGFLT_ADD/MSGFLT_ALLOW only if not already defined
winmain: check only for emptiness
parameters: move winKeyDefs & scintKeyDefs & PGNSI to anonymous names
parameters: remove redundant static/inline keywords
misc: remove unused source code

Closes #3030
2017-03-25 12:15:48 +01:00
Don HO 7aa7788af0 Add clean up for isCertificateValidated() function 2017-03-08 02:57:11 +01:00
Don HO b869163609 Check SciLexer.dll certificate
This fix is about the issue "Vault 7: CIA Hacking Tools Revealed"
published on Wikileak:
https://wikileaks.org/ciav7p1/cms/page_26968090.html
2017-03-08 02:52:58 +01:00
Markus Heidelberg 6b6b81278b Integrate lexers for several hex file formats
Integrate Motorola S-Record lexer.
Integrate Intel HEX lexer.
Integrate Tektronix extended HEX lexer.

Fixes #1256, closes #1257
2017-02-26 00:25:05 +01:00
Don HO a482cbd215 Add tip in Find dialog for informing users the usage of Shift+Enter 2017-02-23 23:56:35 +01:00
Christian Grasser bc84b83af0 Correction of bufferID for iface document
- corrections for interface of bufferID, as x64 requires usage of UINT_PTR aka WPARAM instead of INT
- used new EolType instead of formatType
- removed commented NPPM_ADDREBAR, NPPM_UPDATEREBAR, NPPM_REMOVEREBAR not available in n++ code
- corrected typos

Closes #2920
2017-02-18 22:00:26 +01:00
redmanmale 73ee4426e4 Fix uncomment in block for line comment bug
Fixed block uncomment in undoStreamComment func, new argument.
tryBlockComment is to avoid loop call.
Fixed typo in doStreamComment func.

Fixes #1200, fixes #1714, fixes #2125, fixes #2854, closes #2875
2017-02-11 11:48:17 +01:00
SinghRajenM 3dfe526019 Show OS platform (32/64 bit) in Debug Info.
Closes #2895
2017-02-11 11:28:46 +01:00
Dan Gibson 7ad86ad688 Enhance 'Open File' command - open file without selecting whole path.
Closes #2878
2017-02-09 23:12:45 +01:00
SinghRajenM 7f98067c12 Add error notification on run dialog
1. GetLastErrorAsString is moved from PluginsManager.cpp to Common.h and common.cpp and also function signature is changed
2. Below method were already defined in common.cpp, but not declared in common.h
       generic_string intToString(int val);
       generic_string uintToString(unsigned int val);
3. Updated RunDlg.cpp to show error if ShellExecute fails

Closes #2626, Fixes #2179
2017-02-05 13:12:03 +01:00
oirfeodent 1b1265302f Enable Scintilla Lexer SCLEX_BAAN (BaanC Language)
Closes #2696
2017-01-22 23:10:08 +01:00
Don Ho c235e17f7d Add Plugins Administrator (UI part, in progress) 2017-01-20 14:13:41 +01:00
Motaz Alnuweiri 6a0b7653b0 Improve Folder Browse And Save Dialog
Enable the new user interface for "Folder Browse Dialog" including the
edit box and enable Vista style for "Save Dialog".

Closes #2631
2017-01-17 00:02:32 +01:00
Don Ho e838758e9b Fix geneation of MD5 on Unicode bug
"Geneate MD5 fom text dialog" has geneated wrong result on non ANSI
character (Unicode text).  This bug is due to wong input data.

Fixes #2743
2017-01-04 20:31:53 +01:00
Don Ho 8fc1a2ed30 Add MD5 functionalities 2017-01-01 18:28:25 +01:00
dail8859 5f8ba93b78 Check plugin architecture before loading
Closes #2348, Closes #2350
2016-10-06 20:59:22 -04:00
dail8859 d64a525f3e Sort plugin menu by plugin name 2016-10-06 17:24:27 -04:00
dail8859 eddafe55e8 CallTip text uses start/stop/separator settings
Closes #2274 Closes #2278
2016-09-24 16:56:09 -04:00
Don Ho 863c4e90c1 Add open file on selection & open container on selection commands 2016-08-22 00:52:26 +02:00
Don HO d4bcec1c01 Lost in Translation 3 2016-08-11 22:29:39 +02:00
Don HO 37ed299743 Lost in Translation 2 2016-08-10 00:22:45 +02:00
Don HO 83f291acf8 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2016-07-23 11:39:04 +02:00
Don HO 30bd15f04a Use C++ conversion instead of C style cast 2016-07-23 11:37:58 +02:00
dail8859 bd373788ad Add thousands separator for Summary and Statusbar
Fixes #1329, Fixes #2103
2016-07-22 16:50:39 -04:00
Don HO 797765173d Improve code quality by using static code analysis tool (cppchecker) 2016-07-18 02:08:29 +02:00