aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index be8d4f0..57d764e 100644
--- a/vimrc
+++ b/vimrc
@@ -307,6 +307,11 @@ function Textobj(char, callback)
endfor
let objlength -= 1
endif
+ if startcol > strlen(getline(startline))
+ let startcol = 1
+ let startline += 1
+ let objlength -= 1
+ endif
call cursor(startline, startcol)
exe 'normal! '.a:operator.objlength.' '