Skip to content

Commit

Permalink
Fix tab issue
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Sep 4, 2014
1 parent 363e8c3 commit d55b22f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/after_object.vim
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function! s:after(str, cnt, vis, bw)
throw 'exit'
else
let idx = max([match(rest, '\S'), 0])
execute 'normal! '.(col + idx + 1).'|v$h'
execute 'normal! 0'.(col + idx + 1).'lhv$h'
endif
catch 'exit'
if a:vis
Expand Down
12 changes: 12 additions & 0 deletions test/after_object.vader
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,15 @@ Expect:
banana = yellow
right.

------------------------
~ Tabs ~
------------------------

Given (Tab indentation):
apple = red

Do:
da=

Expect:
apple =

0 comments on commit d55b22f

Please sign in to comment.