Skip to content

Commit

Permalink
R should be repeatable. Fixes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Jun 6, 2017
1 parent d7e81c4 commit 0ab486e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions XSVim.Tests/MiscTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ module ``Miscellaneous tests`` =
let ``Repeat change word``() =
assertText "a$bc de fgz " "cwxxx<esc>ww." "xxx de xxx $"

[<Test>]
let ``r should be repeatable``() =
assertText "a$aaa" "rb$." "baab$"

[<Test>]
let ``Undo insert mode``() =
assertText "abc$" "adef ghi jkl<esc>u" "abc$"
Expand Down
2 changes: 1 addition & 1 deletion XSVim/Properties/AddinInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open MonoDevelop
[<assembly:Addin (
"XSVim",
Namespace = "XSVim",
Version = "0.26.2"
Version = "0.26.3"
)>]

[<assembly:AddinName ("Vim")>]
Expand Down
1 change: 1 addition & 0 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ module Vim =
| Some c, _, _ -> { newState with lastAction = newState.lastAction @ [ typeChar (c |> string) ]}
| None, Delete, _
| None, Change, _
| None, ReplaceChar _, _
| None, _, 'a'
| None, _, 'i'
| None, _, 'A' -> { newState with lastAction = action }
Expand Down

0 comments on commit 0ab486e

Please sign in to comment.