Commit Graph

84 Commits

Author SHA1 Message Date
Rainer Kottenhoff
348dee6801 + enhance consistency between toolbar (save button) and titlebar (modified marker) 2017-09-04 12:59:02 +02:00
Rainer Kottenhoff
f35e6ec96d + fixing problem memory initialization problem during InitInstance() 2017-09-04 10:20:08 +02:00
Rainer Kottenhoff
837f22c588 + remember window position in case of "relaunch elevated" 2017-09-02 14:02:24 +02:00
Rainer Kottenhoff
239f54b0ca + small fixes for "Relaunch elevated"
+ consistency: raising WINVER macros to Win7 (abandoned WinXP support)
2017-09-02 09:09:23 +02:00
Rainer Kottenhoff
a553fa4d9a + fixing some problems for feature "relaunch elevated preserve changes" 2017-09-01 20:25:38 +02:00
Rainer Kottenhoff
d1a53c3fb1 + relaunch elevated keeping current changes in a buffer 2017-09-01 16:45:31 +02:00
Rainer Kottenhoff
04752d0bb5 + clipboard encoding handling refined 2017-09-01 12:03:03 +02:00
Rainer Kottenhoff
a4f0b5c56e + add text file documentation for Notepad3 (includes Notepad2 and Notepad2-mod docs and detailed description of encryption feature)
+ add [Settings2] parameter for "mark occurence" max. count  (which was fix at 2000 before) - now configurable, max is 100000
2017-08-31 20:48:38 +02:00
Rainer Kottenhoff
afb5140b0a + replace lstrcmp() and lstrcmpi() by StrSafe (helper.h defined) methods, where applicable 2017-08-31 14:21:45 +02:00
Rainer Kottenhoff
11c29871e1 + replace lstrlen() by safe StrSafe method (where applicable) 2017-08-30 23:32:56 +02:00
Rainer Kottenhoff
e5ab61a440 - dropping WinXP support , using compiler toolset vc141 Win SDK 10.0.14393.0
(current VC++ redistributable needed ?)
2017-08-30 18:18:00 +02:00
Rainer Kottenhoff
d3e17140e4 + remove internal codepage support for Chinese, Japan, Korean DBCS use generalized UTF-8 codepage instead
(conversions do not work as expected within scintilla lib)
2017-08-30 12:35:07 +02:00
Rainer Kottenhoff
98f7649aee + enable "unlimited" (as in Scintilla Lib: dep. on memory and INT_MAX) undo / redo selection history
using utarray from uthash header library (https://troydhanson.github.io/uthash/index.html)
2017-08-30 11:43:18 +02:00
Rainer Kottenhoff
3ca370a13c + minor findings 2017-08-30 00:21:29 +02:00
Rainer Kottenhoff
fcd9630519 + refactoring: Encoding handling
+ more operations for selctions undo/redo
2017-08-29 14:55:13 +02:00
Rainer Kottenhoff
31a6c93f18 + unicode to codepage clipboard handling 2017-08-29 00:28:51 +02:00
Rainer Kottenhoff
8ff4bad83f + clean code 2017-08-28 17:33:00 +02:00
Rainer Kottenhoff
369fbe814b + remove support for obsolete Korean Johab (1361) codepage. 2017-08-28 16:34:29 +02:00
Rainer Kottenhoff
f0524f0321 + switching Scintilla internal codepage to UTF-8 only (resp. Japanese, Chinese and Korean DBCS)
single-byte encoding is supported externally and converted (fore and back) to UTF-8 internally,
  this simplifies i.e. clipboard exchange, etc.
2017-08-28 16:19:03 +02:00
Rainer Kottenhoff
803e39f771 + changes to EditGetClipboardText() solved the SCI_CUT problem, so it can be switched back from SCI_COPY & SCI_CLEAR to SCI_CUT (byte alignment in 64-bit , i am nut sure) 2017-08-27 08:59:13 +02:00
Rainer Kottenhoff
291da00a50 + extended: remember selection undo / redo
+ add undo / redo selection to more operations
+ found Scintilla 400 method "SCI_CUT"  (cut selection) broken: lost last char
   -  replaced by SCI_COPY & SCI_CLEAR combination (for now)
2017-08-26 12:48:47 +02:00
Rainer Kottenhoff
e0606ff986 + refactoring of "Accelerated Word Navigation" to be compliant with Scintillas WhiteSpace and Punctuation defines
+ "Accelerated Word Navigation" activation influences "Mark Occurrences" (whole word) if set
2017-08-25 15:24:40 +02:00
Rainer Kottenhoff
432db22943 + adapt lstrcpyn() calls according to StrSafe.h requirements ... 2017-08-24 17:31:56 +02:00
Rainer Kottenhoff
f4ce0193b6 + found bug caused by StrSafe migration (COUNTOF() for buffer size must not be used on buffer pointer)
+ migrate StrCpyN() and StrCatBuff() to corresponding StrSafe.h methods
2017-08-24 15:15:56 +02:00
Rainer Kottenhoff
b7523f4d53 + last chunk of StrSafe.h replacements for deprecated string functions
* no functional changes compared origin master
- despite of regression tests, there is a small possibility of
  introducing changed/wrong behavior regarding string operations ... :-O
2017-08-23 12:22:48 +02:00
Rainer Kottenhoff
3d0359ae6b nth+ StrSafe code hardening 2017-08-23 00:02:48 +02:00
Rainer Kottenhoff
4dce5f0c0f nth StrSafe adaption 2017-08-22 22:03:12 +02:00
Rainer Kottenhoff
814a4893bf Merge branch 'Bugfixes_0822' into Feature_Branch 2017-08-22 09:12:20 +02:00
Rainer Kottenhoff
8b54c33aa2 +fix: settings SciFontQuality have been overwritten by Scheme configuration - adapted
(Fonts: Calibri,Cambria,Candara,Consolas,Constantia,Corbel,Segoe UI are using 'cleartype smoothing' (SC_EFF_QUALITY_LCD_OPTIMIZED)
          by default, if not configured in Schema definition for Lexer)
2017-08-22 01:38:58 +02:00
Rainer Kottenhoff
bfe3962a35 StrSafe adaptions 2017-08-21 19:42:19 +02:00
Rainer Kottenhoff
d289084fd4 + extended default "space char set" for "Accelerated Word Navigation"
+ to avoid unexpected "accelerated word navigation" behavior,
  space-char extension is restricted to 7-bit ASCII char set (ignoring specified non-7-bit-ASCII chars).
2017-08-21 11:03:46 +02:00
Rainer Kottenhoff
399efd2de2 + manually merge changes from Bugfix branch 450 2017-08-19 09:00:55 +02:00
Rainer Kottenhoff
4e71b4cf2f + fix: manually edited settings (SciDirectWriteTech, SciFontQuality) should be placed in settings section [Settings2]. 2017-08-19 08:51:40 +02:00
Rainer Kottenhoff
32bdf25167 + 1st chunk of StrSafe migration 2017-08-19 00:53:24 +02:00
Rainer Kottenhoff
1fb17d30c8 + code modernizing: replacing some ZeroMemory() by C++11 struct initializer 2017-08-18 19:26:41 +02:00
Rainer Kottenhoff
d78d417f7d + fixed: "file modified" flag not set on Ctrl+X actions 2017-08-18 17:05:57 +02:00
Rainer Kottenhoff
aa52069372 + fix: re-enable accidentally disabled toolbar buttons (find, replace, clear, toggle-folds, file-launch) 2017-08-18 12:39:23 +02:00
Rainer Kottenhoff
f22d0198b9 + fix: remove obsolete settings entry, never read (SciDrawTechnology)
- correct entry is 'SciDirectWriteTech', must by manually edited

+ add possibility of override SciDirectWriteTech Settings (general section),
  by resolution specific specialization (using general settings if not defined)
2017-08-18 12:01:50 +02:00
Rainer Kottenhoff
fbf995a5c1 + fixing crash: no good idea to make char array (char*) external to other compilation unit
(might be a 64-bit pointer problem or (higher probability) an order of initialization problem)
  found another (better) solution for that
2017-08-18 10:18:57 +02:00
Rainer Kottenhoff
accbcdcb2e + fix: wrong shortcut in menu on word navigation (Ctrl+LEFT/RIGHT)
+ add: toggle option for accelerated word navigation (Ctrl+LEFT/RIGHT)
  according to issue #27 (https://github.com/rizonesoft/Notepad3/issues/27)
  - [Settings2] parameter "ExtendedWhiteSpaceChars=" defines a
    set of chars to be ignored (handled as whitespaces) to find the next beginning of a word
    if "Accelerated word navigation" is switched ON
2017-08-17 17:56:08 +02:00
Rainer Kottenhoff
6474ab9a22 + Save Edit.c and Version.h as UTF-8 w/BOM to make Unicode chars independant from encoding ANSI local codepage.
+ remove some unneccessary comments with unicode chars
2017-08-16 22:58:37 +02:00
Rainer Kottenhoff
1a9f19d961 + fix: restore selection after undo: revert selection mode too 2017-08-16 21:40:55 +02:00
Rainer Kottenhoff
b88fe6bf26 + add Del/Back Selection preserving on Undo/Redo 2017-08-16 15:39:21 +02:00
Rainer Kottenhoff
7f52ae6a4d + fix: restore "rectangular" selection too on "Selection Cut" Undo/Redo 2017-08-16 14:13:18 +02:00
Rainer Kottenhoff
ba09c53f27 + Cut Selection (Ctrl-X) will preserve Selection on Undo/Redo 2017-08-16 12:33:45 +02:00
Rainer Kottenhoff
e66c9cae8f dev trial 1 2017-08-16 00:18:06 +02:00
Rainer Kottenhoff
d9ef89f715 + fix Toolbar Button "Save" has to be enabled on encoding changes
+ encode Notepad.rc as Unicode BOM (UTF-16LE) to enable unicode characters for resource embedding
2017-08-15 21:45:29 +02:00
Rainer Kottenhoff
490b99831a + fix bug on path compare for editing own settings file (.ini) to disable "save settings" menu entries (should be case insensitive) 2017-08-15 19:27:16 +02:00
Rainer Kottenhoff
2e2e1707cd + further discussions on notepad2-mod PR #200 convinced me, that the "reload UTF-8 bugfix" solves a problem regarding pure ASCII files reloaded as UTF-8.
+ add menu entries for launching WebTemplates (specified in section [Settings2]) with selected text as arguments
2017-08-15 19:12:13 +02:00
Rainer Kottenhoff
2a11751359 + Zero initializing string buffers (hardening code while searching an issue regarding "Recent Files" list in "relative paths" mode ... 2017-08-15 17:32:31 +02:00