mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-08 18:40:37 +02:00
VIM-42 Ignore multi-character indents while recoding last insert actions
This commit is contained in:
parent
6a1707a7e6
commit
5b5b6188da
@ -387,6 +387,11 @@ public class ChangeGroup extends AbstractActionGroup {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignore multi-character indents as they should be inserted automatically while repeating <Enter> actions
|
||||
if (newFragment.length() > 1 && newFragment.trim().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
final int delta = e.getOffset() + oldFragment.length() - oldOffset;
|
||||
if (oldOffset >= 0 && delta != 0) {
|
||||
final String motionName = delta < 0 ? "VimMotionLeft" : "VimMotionRight";
|
||||
|
Loading…
Reference in New Issue
Block a user