Skip to content

Commit

Permalink
Fix df,dt, cf & ct - fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Mar 16, 2017
1 parent 40c3524 commit 02c91dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion XSVim/Properties/AddinInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ open Mono.Addins.Description
[<assembly:Addin (
"XSVim",
Namespace = "XSVim",
Version = "0.13"
Version = "0.13.1"
)>]

[<assembly:AddinName ("Vim")>]
Expand Down
10 changes: 7 additions & 3 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ module Vim =
let delete start finish =
let finish =
match command.textObject with
| ForwardToEndOfWord -> finish + 1
| ForwardToEndOfWord
| ToCharInclusive _
| ToCharExclusive _ -> finish + 1
| _ -> finish
if command.textObject <> Selection then
setSelection vimState editor command start finish
Expand All @@ -347,8 +349,10 @@ module Vim =
| Change -> delete start finish
| Yank ->
let finish =
match command.textObject with
| ForwardToEndOfWord -> finish + 1
match command.textObject with
| ForwardToEndOfWord
| ToCharInclusive _
| ToCharExclusive _ -> finish + 1
| _ -> finish
if command.textObject <> Selection then
setSelection vimState editor command start finish
Expand Down

0 comments on commit 02c91dd

Please sign in to comment.