mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-26 03:14:51 +01:00
correct fold line counts
This commit is contained in:
parent
99f4198407
commit
4259584599
1 changed files with 5 additions and 3 deletions
|
@ -479,8 +479,10 @@ function! s:NM_cmd_show_parse(inlines)
|
|||
if (outlnum - mode_start) > g:notmuch_show_signature_lines_max
|
||||
let mode_type = ''
|
||||
elseif part_end
|
||||
let foldinfo = [ mode_type, mode_start, outlnum,
|
||||
\ printf('[ %d-line signature. Press "s" to show. ]', outlnum - mode_start) ]
|
||||
if mode_start != outlnum
|
||||
let foldinfo = [ mode_type, mode_start, outlnum-1,
|
||||
\ printf('[ %d-line signature. Press "s" to show. ]', outlnum - mode_start) ]
|
||||
endif
|
||||
let mode_type = ''
|
||||
endif
|
||||
endif
|
||||
|
@ -534,7 +536,7 @@ function! s:NM_cmd_show_parse(inlines)
|
|||
let hdr_start = msg['hdr_start']+1
|
||||
let hdr_end = len(info['disp'])
|
||||
let foldinfo = [ 'hdr', hdr_start, hdr_end,
|
||||
\ printf('[ %d-line headers. Press "h" to show. ]', hdr_end - hdr_start) ]
|
||||
\ printf('[ %d-line headers. Press "h" to show. ]', hdr_end + 1 - hdr_start) ]
|
||||
let msg['header'] = hdr
|
||||
let in_header = 0
|
||||
let hdr = {}
|
||||
|
|
Loading…
Reference in a new issue