From f78aaa4c9f8893383abfb79d082ce08a844d49ea Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Wed, 30 Apr 2008 01:07:44 -0500 Subject: the fold text object shouldn't do anything if we aren't in a fold --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index 12d3937..3b2b36c 100644 --- a/vimrc +++ b/vimrc @@ -392,6 +392,9 @@ call Textobj('/', 'Textobj_regex') " }}} " f for folds {{{ function Textobj_fold(inner, count) + if foldlevel(line('.')) == 0 + throw 'no-match' + endif exe 'normal! '.a:count.'[z' let startline = line('.') + a:inner normal! ]z -- cgit v1.2.3-54-g00ecf