diff --git a/extensions/vi-mode/tests/operator.lisp b/extensions/vi-mode/tests/operator.lisp index 30951ba49..457bb83fb 100644 --- a/extensions/vi-mode/tests/operator.lisp +++ b/extensions/vi-mode/tests/operator.lisp @@ -293,3 +293,12 @@ (with-vi-buffer (#?"Hello\nWor[l]d") (cmd "khg~") (ok (buf= #?"He[L]Lo\nWoRLd"))))) + +(deftest vi-swapcase-and-forward + (with-fake-interface () + (with-vi-buffer ("[H]ello World") + (cmd "~") + (ok (buf= "h[e]llo World"))) + (with-vi-buffer ("[H]ello World") + (cmd "~~~~~~") + (ok (buf= "hELLO [W]orld")))))