mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-10-08 19:26:56 +02:00
[VIM-2104] Use side scroll offset for horizontal scrolling
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user