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;
|
||||
|
||||
// eof?
|
||||
if ((currLine >= lastLine) || (currLine < 0)
|
||||
if ((currLine > lastLine) || (currLine < 0)
|
||||
|| ((deltaCurrLine == 0) && (currLine == 0) && ((deltaLastLine >= 0) || cursorMovedUp)))
|
||||
{
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue