Skip to content

Commit

Permalink
+fix: scroll current line into view in case of word-wrap toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiKoHoff committed May 25, 2024
1 parent 1d5aa08 commit 1c09290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Notepad3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5981,7 +5981,8 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
case IDM_VIEW_WORDWRAP:
Globals.fvCurFile.bWordWrap = Settings.WordWrap = !Settings.WordWrap;
_SetWrapIndentMode(Globals.hwndEdit);
Sci_ScrollSelectionToView();
//~Sci_ScrollSelectionToView(); // does not work here bug ?
SciCall_SetFirstVisibleLine(max_ln(0, Sci_GetCurrentLineNumber() - Settings2.CurrentLineVerticalSlop));
UpdateToolbar();
break;

Expand Down

0 comments on commit 1c09290

Please sign in to comment.