mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 14:54:39 +02:00
Fix "Run macro until the end of file" command skipping the last line issue
Fix #10441, close #10638
This commit is contained in:
parent
c1dac5983a
commit
add1c145ad
@ -1319,7 +1319,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||||||
currLine += deltaCurrLine;
|
currLine += deltaCurrLine;
|
||||||
|
|
||||||
// eof?
|
// eof?
|
||||||
if ((currLine >= lastLine) || (currLine < 0)
|
if ((currLine > lastLine) || (currLine < 0)
|
||||||
|| ((deltaCurrLine == 0) && (currLine == 0) && ((deltaLastLine >= 0) || cursorMovedUp)))
|
|| ((deltaCurrLine == 0) && (currLine == 0) && ((deltaLastLine >= 0) || cursorMovedUp)))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user