mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
make <Enter> from search screen display the correct message
This commit is contained in:
parent
3fe89c43dd
commit
905a08788e
1 changed files with 3 additions and 3 deletions
|
@ -53,11 +53,11 @@ function! s:NM_cmd_search(words)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:NM_search_display()
|
function! s:NM_search_display()
|
||||||
let line = line('.')
|
|
||||||
if !exists('b:nm_raw_data')
|
if !exists('b:nm_raw_data')
|
||||||
echo 'no b:nm_raw_data'
|
echo 'no b:nm_raw_data'
|
||||||
else
|
else
|
||||||
let info = b:nm_raw_data[line]
|
let line = line('.')
|
||||||
|
let info = b:nm_raw_data[line-1]
|
||||||
let what = split(info, '\s\+')[0]
|
let what = split(info, '\s\+')[0]
|
||||||
call s:NM_cmd_show([what])
|
call s:NM_cmd_show([what])
|
||||||
endif
|
endif
|
||||||
|
@ -78,7 +78,7 @@ function! s:NM_cmd_show(words)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
" --- helper function
|
" --- helper functions
|
||||||
|
|
||||||
function! s:NM_newBuffer(ft, content)
|
function! s:NM_newBuffer(ft, content)
|
||||||
enew
|
enew
|
||||||
|
|
Loading…
Reference in a new issue