From 7f2533591b9f1bd26a7cd2b2c916218b57c01ce5 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 1 Dec 2014 20:30:37 +0900 Subject: [PATCH] Handling case where we cannot find args to wrap better --- argwrap.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argwrap.vim b/argwrap.vim index 3b45a19..0b6f9e5 100644 --- a/argwrap.vim +++ b/argwrap.vim @@ -121,7 +121,7 @@ endfunction function! argwrap#toggle() let l:range = argwrap#findRange() - if l:range.lineStart == l:range.lineEnd && l:range.colStart == l:range.colEnd + if l:range.lineStart == 0 && l:range.colStart == 0 || l:range.lineEnd == 0 && l:range.colEnd == 0 return endif