Skip to content

Commit

Permalink
Merge pull request #1544 from contour-terminal/improvement/stop_scrol…
Browse files Browse the repository at this point in the history
…l_in_normal_mode

Stop scroll when switching to normal mode
  • Loading branch information
christianparpart authored Jun 30, 2024
2 parents 9963528 + 4e3361a commit 55dc1d8
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 55dc1d8

Please sign in to comment.