Comments (6)
notepad-plus-plus/PowerEditor/src/NppBigSwitch.cpp
Lines 683 to 687 in bb278b2
The call to _pluginsManager.relayNppMessages()
at the end of Notepad_plus::process
is unreachable because the NPPM_RELOADFILE
callback returns immediately, whereas before there was only a break
statement in there.
Tip
Documentation changes are best done in separate commits from code changes.
from notepad-plus-plus.
For documentation reasons/tracking information: The result value has been adapted to return TRUE on success and FALSE on failure.
See commit:
060396c
from notepad-plus-plus.
In short, NPPM_RELOADFILE should return TRUE on success and return FALSE on failure.
As the "Notepad_plus_msgs.h" says:
#define NPPM_RELOADFILE (NPPMSG + 36)
//BOOL NPPM_RELOADFILE(BOOL withAlert, TCHAR *filePathName2Reload)
from notepad-plus-plus.
To be clear, we think this is a breaking change in Notepad++, not the plugin.
from notepad-plus-plus.
To be clear, we think this is a breaking change in Notepad++, not the plugin.
What's broken is the (until now) implicit assumption that NPPM_RELOADFILE
would be forwarded to plugins via PluginsManager::relayNppMessages
. Despite the documentation, the API would have always returned FALSE before (instead of always TRUE as now); the default value of the local result
variable was never updated anywhere along the old code path. Plugins can send NPPM_RELOADFILE
by themselves as they always could before; they just have to reverse their expectation about the return value.
Having said that, it does not look like a deliberate API change was intended here. In a function that's so overlong the compiler warns about how much local data is pushed to the stack 1, it's easy to forget there's a call site at the bottom.
Footnotes
-
...\PowerEditor\src\NppBigSwitch.cpp(256): warning C6262: Function uses '34776' bytes of stack. Consider moving some data to heap.
https://github.com/notepad-plus-plus/notepad-plus-plus/actions/runs/7846105861/job/21412038103#step:5:1102 ↩
from notepad-plus-plus.
@vinsworldcom
Could you check the PR #14708 please?
from notepad-plus-plus.
Related Issues (20)
- [BUG] <SQL comment in Language> HOT 2
- [BUG] Using a tab character when renaming an unsaved tab is problematic HOT 1
- [Feature request] Plugin capability to request renaming a file or tab
- [BUG] Macro recording incorrectly records steps HOT 1
- [Feature request] 💡Document List panel: Filter using incremental search box HOT 1
- [BUG] Autocomplete XML file directory unable to be written to without Admin privelages HOT 1
- [BUG] Search results containing non ASCII characters do not display the entire line HOT 1
- [BUG] Missing disabled fluent icon for monitoring
- Text Insertion Issue HOT 2
- [BUG] Begin/End Select Problem HOT 6
- Function List doesn't show functions with C++ Builder keywords
- [Feature request][Dark Mode] Custom draw for main toolbar
- JavaScript folding not working in PHP file HOT 1
- [Feature request] 4x4 pane mode/custom layouts HOT 1
- [Feature request] Tab color customization HOT 1
- [BUG] Define your language, "ignore case" truncated in Italian, French, Spanish... HOT 2
- [BUG] "ASCII Character Table". Invalid HTML names of ASCII characters 0x98 and 0x7E ('~', tilde) HOT 2
- [BUG] Find Previous (Shift + F3) doesn't work in the last update 8.6.7 HOT 4
- [BUG] Paste from column select mode copy should insert newlines and shouldn't pad text with spaces HOT 2
- Ctrl+Alt+click does not create additional text carets HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notepad-plus-plus.