Commit Graph

4288 Commits

Author SHA1 Message Date
CennoxX b4d94f5774 Make markdown UDL work in evry dark theme
When using dark mode with a theme other than DarkModeDefault the background and font color of the theme are not applied to all styles.
This PR fix this bug by adding colorStyle="1" to ignore defined background colour in UDL, and use the default's background colour (theme's one) instead.

Fix #10593, close #10619
2021-10-06 01:01:12 +02:00
A. Regnander 5de59d7e44 Update swedish.xml
Close #10620
2021-10-05 14:38:16 +02:00
Don Ho 6c3031f01b Fix file can be marked as saved even it's been deleted outside
This PR make buffer always dirty (with any undo/redo operation) if the editing buffer is unsyncronized with file on disk.
By "unsyncronized", it means:
1. the file is deleted outside but the buffer in Notepad++ is kept.
2. the file is modified by another app but the buffer is not reloaded in Notepad++.

Note that if the buffer is untitled, there's no correspondent file on the disk so the buffer is considered as independent therefore synchronized.

Fix #10401, close #10616
2021-10-05 02:32:40 +02:00
Don Ho 97ad1d922e Update translations 2021-10-03 03:38:05 +02:00
Adam D. Walling 78a2f32692 Fix status bar text display issue in dark mode
Fix incorrect text size calculation for drawing the dark mode status bar
which can cause an invalid character to be displayed.

Fix #10564, close #10611
2021-10-03 03:06:22 +02:00
Don Ho 682a8edafa CFile (Win32 API IO) Refactoring
1. Rename CFile to Win32_IO_File (plus some modification in class).
2. Add new method writeStr() in Win32_IO_File class to write "char*" & string.
3. Change method names of Utf8_16_Write class and make writeFile() method return accurate type (boolean).

Close #10612
2021-10-02 15:00:08 +02:00
Don Ho 11b2dd0f6b Fix previous session lost issue after MS update restarting Windows
Use Windows IO API instaed POSIX IO (output only) on tinyXml component for writting xml file (config.xml, session.xml, etc...).

Fix #10402, close #10612
2021-10-02 14:59:47 +02:00
Don Ho f1837474ca Fix Print Preferences GUI bug issue
Fix #10552
2021-09-29 18:23:59 +02:00
Pavel Nedev 9aa9ecb664 Fix NUL file-corruption issue after system shutting down brutally
Uses native Win32 IO API (CreateFile, ReadFile, WriteFile, CloseHandle) instead of POSIX ones (fopen, fread, fwrite, fclose) for remedying NUL file-corruption problem due to system shutting down brutally.

Fix #6133, close #10598
2021-09-28 12:30:05 +02:00
Ivan Ustûžanin 49c3e5d553 UDL lexer: fix potential infinite loop
Fixed a condition in a loop which is always true (unsigned >= 0) and can
potentially turn the loop infinite.

And removed a check after the loop which now is also always false.

Close #10597
2021-09-28 01:30:52 +02:00
Don Ho 4d57f5071f Make modified code conform to the coding style 2021-09-27 23:03:10 +02:00
Ashfaaq18 531bef28d8 Fix docked window sizing direction problem in RTL mode
Fix #10536, close #10576
2021-09-27 22:55:26 +02:00
Ivan Ustûžanin 19cf5c9037 UDL: preserve DarMode-ness upon saving
Fix #10583, close #10570
2021-09-27 20:56:21 +02:00
Don Ho 2159126d8e Initialize the values of Gripper's varible member 2021-09-27 20:51:39 +02:00
Ashfaaq18 d939e4a6ed Fix floating panel movement issue in RTL mode
Fix #10579, close #10586
2021-09-27 19:42:51 +02:00
Ivan Ustûžanin d11d2c7f23 gcc: fix warnings during Scintilla build
Fixed warnings generated during Scintilla build in `boostregex/BoostRegExSearch.cxx`
(`-Wall -Wpedantic` are the default for Scintilla).

Close #10596
2021-09-27 19:31:51 +02:00
Don HO 45693d1302 Notepad++ 8.1.5 release 2021-09-27 13:24:09 +02:00
Don Ho 2f7490abab Fix tab settings in UDL regression
Bug reported here:
https://community.notepad-plus-plus.org/topic/21866/notepad-8-1-5-rc-3?_=1632620635740

The regression is due to e5a800722b
2021-09-26 04:34:37 +02:00
Don Ho a7a700145d Fix a regression of pluginsAdmin
Fix a regression of pluginsAdmin reported in:
https://community.notepad-plus-plus.org/topic/21853/notepad-8-1-5-rc2/3?_=1632245574765
2021-09-21 22:53:58 +02:00
Don Ho 635f1d41ab Fix a typo & add a pun 2021-09-20 18:34:50 +02:00
Don Ho bc2e689185 Add Insert Date/Time commands shortcut & macro capacities
Fix #10567
2021-09-20 04:11:45 +02:00
Don HO c7e1da48ff Align dark mode styles with light mode styles
1. Improve JSON, PYTHON, BANNC and VHDL syntax highlighting in dark mode.
2. Reosort light mode style.
2021-09-18 02:52:09 +02:00
popcorner 94788503d2 Update chineseSimplified.xml
Close #10559
2021-09-16 20:43:58 +02:00
Thomas De Rocker 8d7aa6b06c Update dutch.xml
Close #10474
2021-09-16 19:02:38 +02:00
popcorner ad40663fb3 Update chineseSimplified.xml
Close #10498
2021-09-16 19:00:04 +02:00
regener 827bcc1d05 Hungarian translation update for version 8.1.4
Close #10500
2021-09-16 18:55:40 +02:00
Don Ho 6ee3bd3c45 Make more room for the translation of custom format label 2021-09-16 17:54:25 +02:00
mere-human 0ad4912eb0 Enhance Insert Custom Date command by using MS datetime format
Fix #10467, close #10480
2021-09-16 17:25:19 +02:00
rddim e1e180397f Update Bulgarian localization
Close #10424
2021-09-16 15:20:46 +02:00
schnurlos 1d71e90a64 Update german.xml to v8.1.4
Close #10428
2021-09-16 15:17:34 +02:00
Hugo Carvalho 3d02256078 Update Portuguese translation to v8.1.5
Close  #10457
2021-09-16 15:12:22 +02:00
yasmise 114107957c update japanese.xml to v8.1.5
Added translations for these commits:
* Make "Confirm Save All" dialog more clear (deab93f9b5)
* Make Incremental Search panel translatable (e12b161d48)
* Add custom date time insert (84c1505fab)

Close #10477
2021-09-16 15:06:34 +02:00
kubalav 56b0af3c85 Update Slovak translation to 8.1.5
Close #10482
2021-09-16 12:54:19 +02:00
xomx 7a6eb0da37 Update czech.xml to v8.1.5
Close #10521
2021-09-16 12:50:28 +02:00
~GOLEM~ 748db1be38 Update russian.xml v8.1.5
Close #10542
2021-09-16 12:45:03 +02:00
IoeCmcomc 3c464e49bb Update Vietnamese translation
Close #10547
2021-09-15 20:17:22 +02:00
ArkadiuszMichalski f658c22265 Update polish.xml to 8.1.5
Update polish.xml to 8.1.5 (according to the latest commit).

Close #10550
2021-09-15 03:44:53 +02:00
Patriccollu 9342da4885 Update Corsican translation for Notepad++ 8.1.5
Close #10455
2021-09-15 01:21:44 +02:00
Don Ho f6282f4f11 Update localization files
And fix a typo in BUILD.md
2021-09-14 23:33:34 +02:00
Don Ho a3116818e0 Code enhancement: Initialize variable member's value of struct/class
Close #10545
2021-09-14 03:08:17 +02:00
Ivan Ustûžanin 049ededf9f Add gcc 32-bit build and improve build process
1. Include SciLexer build in Notepad++ build.
2. Remove -fpermissive, auto -j in make.

Fix #9989, close #10540
2021-09-13 23:17:11 +02:00
Ashfaaq18 73b41ec74f Fix docked/float panels in RTL layout issue
Fixed Npp RTL context menu for Document List, Project Panels, Folder Workspace, Search Results Window,
and fixed Floating Dockable Window RTL direction.

Fix #10488, close #10535
2021-09-13 13:27:35 +02:00
Don Ho f6bea32003 Update uzbek.xml 2021-09-12 19:04:10 +02:00
Don Ho e5a800722b Make code more sanitary
Fix some vulnerable codes detected by VS's analyzing.

Close #10541
2021-09-12 18:50:30 +02:00
Ashfaaq18 36d0d29cc7 Add path column in Document list panel
Fix #9679, close #10539
2021-09-12 15:18:22 +02:00
Don HO 36d13f3ad8 Sort Preferences->New Document->Default language combobox
Fix #10513
2021-09-10 02:44:55 +02:00
Ivan Ustûžanin 1c9009e9b2 Fix open file crash via open file dialog
Notepad_plus_Window was rather huge (megabytes). Now it's small (tens of kilobytes),
but to safeguard against future size increase move its allocation from the stack
into the heap.
By using smart pointer, this PR not only fix open file crash properly,
but also prevent stack from being corrupted in the future.

Fix #10454, close #10531
2021-09-09 16:05:50 +02:00
Ivan Ustûžanin 495d202a43 Fix Find dialog display mess-up
Find dialog display mess-up caused by unintialized member variable.
Intialization of member variables fixes it.

Fix #10511, close #10530
2021-09-09 12:41:22 +02:00
Don Ho aff77e27d3 Fix incremental search panel not translated after startup issue
Fix #10478
2021-09-08 13:43:51 +02:00
Don Ho bd31dbb68f Remove "#pragma once" from rc files 2021-09-06 22:49:11 +02:00