diff options
-rw-r--r-- | vimrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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.' ' |