mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-03-05 15:32:51 +01:00
Added tests for 'gv' and 'o' in visual mode
This commit is contained in:
parent
2fc2f30055
commit
2d1b40f00c
@ -539,4 +539,18 @@ public class MotionActionTest extends VimTestCase {
|
||||
"three\n");
|
||||
assertOffset(4);
|
||||
}
|
||||
|
||||
// |v_gv|
|
||||
public void testSwapVisualSelections() {
|
||||
typeTextInFile(parseKeys("viw", "<Esc>", "0", "viw", "gv", "d"),
|
||||
"foo <caret>bar\n");
|
||||
myFixture.checkResult("foo \n");
|
||||
}
|
||||
|
||||
// |v_o|
|
||||
public void testSwapVisualSelectionEnds() {
|
||||
typeTextInFile(parseKeys("v", "l", "o", "l", "d"),
|
||||
"<caret>foo\n");
|
||||
myFixture.checkResult("fo\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user