From: Bart Trojanowski Date: Fri, 20 Nov 2009 06:39:22 +0000 (-0500) Subject: fix a corner case with folding a single line citation X-Git-Tag: 0.1~313^2~91 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e0005e6d0740e3af6b247a4cf7c7a42a461f4b0;p=notmuch.git fix a corner case with folding a single line citation --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 94eb0bba..3b16a995 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -182,7 +182,7 @@ function! s:NM_cmd_show_parse(inlines) endif elseif mode_type == 'cit' if part_end || match(line, s:notmuch_show_citation_regexp) == -1 - let outlnum = len(info['disp']) -1 + let outlnum = len(info['disp']) let foldinfo = [ mode_type, mode_start, outlnum, \ printf('[ %d-line citation. Press "c" to show. ]', outlnum - mode_start) ] let mode_type = ''