diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-30 14:27:34 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-30 14:27:34 -0500 |
commit | c4ee4359c420c853bc682242cc57f11f8f7cafe4 (patch) | |
tree | d375b8c366d1af1fc08bbe3230affe4b38bcc39a /vimrc | |
parent | c25f28959e6f5f6015d7610a4a4af5e7ca105cf6 (diff) | |
download | vim-textobj-c4ee4359c420c853bc682242cc57f11f8f7cafe4.tar.gz vim-textobj-c4ee4359c420c853bc682242cc57f11f8f7cafe4.zip |
execute the callback function in the sandbox, so it doesn't do anything weird like change the buffer
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -288,7 +288,7 @@ function Textobj(char, callback) function Textobj_{g:text_object_number}(inner, operator, count, callback) try let pos = getpos('.') - let [startline, startcol, endline, endcol] = function(a:callback)(a:inner, a:count) + sandbox let [startline, startcol, endline, endcol] = function(a:callback)(a:inner, a:count) catch /no-match/ return finally |