aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index a0e925b..2b8697a 100644
--- a/vimrc
+++ b/vimrc
@@ -286,7 +286,11 @@ let g:text_object_number = 0
function Textobj(char, callback)
let g:text_object_number += 1
function Textobj_{g:text_object_number}(inner, operator, count, callback)
- let [startline, startcol, endline, endcol] = function(a:callback)(a:inner, a:count)
+ try
+ let [startline, startcol, endline, endcol] = function(a:callback)(a:inner, a:count)
+ catch /no-match/
+ return
+ endtry
if startline == endline
let objlength = endcol - startcol + 1
else