1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-03-05 15:32:51 +01:00

[VIM-2104] Use side scroll offset for horizontal scrolling

This commit is contained in:
Matt Ellis 2020-08-20 11:45:39 +01:00
parent 174f86f91e
commit 589e43f825
No known key found for this signature in database
GPG Key ID: FA6025D54131324B

View File

@ -671,7 +671,7 @@ public class MotionGroup {
int width = EditorHelper.getScreenWidth(editor);
final EnumSet<CommandFlags> flags = CommandState.getInstance(editor).getExecutingCommandFlags();
scrollJump = !flags.contains(CommandFlags.FLAG_IGNORE_SIDE_SCROLL_JUMP);
scrollOffset = OptionsManager.INSTANCE.getScrolloff().value();
scrollOffset = OptionsManager.INSTANCE.getSidescrolloff().value();
scrollJumpSize = 0;
if (scrollJump) {
scrollJumpSize = Math.max(0, OptionsManager.INSTANCE.getSidescroll().value() - 1);