Fix "Run macro until the end of file" command skipping the last line issue

Fix #10441, close #10638
This commit is contained in:
CennoxX 2021-10-08 22:17:18 +02:00 committed by Don Ho
parent c1dac5983a
commit add1c145ad
1 changed files with 1 additions and 1 deletions

View File

@ -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;