Skip to content

Commit

Permalink
Stop scroll when switching to normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut authored and christianparpart committed Jun 30, 2024
1 parent 9963528 commit 4e3361a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<li>Add better bell sound (#1378)</li>
<li>Add config entry to configure behaviour on exit from search mode</li>
<li>Add handling of different input commands (#629)</li>
<li>When switching to normal mode screen will stay in same position (#808)</li>
<li>Update of contour.desktop file (#1423)</li>
<li>Changed configuration entry values for `font_locator` down to `native` and `mock` only (#1538).</li>
<li>Fixes forwarding of input while in normal mode (#1468)</li>
Expand Down
1 change: 1 addition & 0 deletions src/vtbackend/ViCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ void ViCommands::modeChanged(ViMode mode)
_terminal->clearSelection();
_terminal->pushStatusDisplay(StatusDisplayType::Indicator);
_terminal->screenUpdated();
_terminal->viewport().makeVisibleWithinSafeArea(LineOffset { 0 });
break;
case ViMode::Visual:
_terminal->setSelector(make_unique<LinearSelection>(
Expand Down

0 comments on commit 4e3361a

Please sign in to comment.