diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-30 14:01:23 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-30 14:01:23 -0500 |
commit | 065c460216786e610f0c61b959467d918369504b (patch) | |
tree | 3e5a7ac28fc9794aff89ce4d05217dc242c40a02 | |
parent | 35361e1f4005e31c1d34e46cfeae4a64c3e879d8 (diff) | |
download | vim-textobj-065c460216786e610f0c61b959467d918369504b.tar.gz vim-textobj-065c460216786e610f0c61b959467d918369504b.zip |
hmmm, looking more closely at how text objects like ( are handled, this seems to match their behavior better
-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.' ' |