diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-28 01:31:24 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-28 01:31:24 -0500 |
commit | 40ebc166a3da6e46125356f85c03ab54d3307e03 (patch) | |
tree | 480fa8f6d2a5afcd484a6287090cfd320a7a4353 | |
parent | a1bc3fec0a6a76a2d5cf729161f74944f44d4bf7 (diff) | |
download | vim-textobj-40ebc166a3da6e46125356f85c03ab54d3307e03.tar.gz vim-textobj-40ebc166a3da6e46125356f85c03ab54d3307e03.zip |
don't really need to save and restore the cursor here, since all the text object stuff will reposition it anyway
-rw-r--r-- | vimrc | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -369,15 +369,11 @@ call Textobj('/', 'Textobj_regex') " }}} " f for folds {{{ function Textobj_fold(inner, count) - let pos = getpos('.') - exe 'normal! '.a:count.'[z' let startline = line('.') + a:inner normal! ]z let endline = line('.') - a:inner - call setpos('.', pos) - return [startline, 1, endline, strlen(getline(endline))] endfunction call Textobj('f', 'Textobj_fold') |