aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/vimrc b/vimrc
index 3b2b36c..421638d 100644
--- a/vimrc
+++ b/vimrc
@@ -414,10 +414,11 @@ function Textobj_arg(inner, count)
for line in reverse(lines)
let argbegin = matchend(line, '.*\%(,\s*\|(\)') + 1
if argbegin != 0
- if argbegin > strlen(line)
+ while argbegin > strlen(line)
let linenum += 1
- let argbegin = matchend(getline(linenum), '^\s*') + 1
- endif
+ let line = getline(linenum)
+ let argbegin = matchend(line, '^\s*') + 1
+ endwhile
break
endif
let linenum -= 1