diff options
author | Bart Trojanowski <bart@jukie.net> | 2009-11-18 21:27:50 -0500 |
---|---|---|
committer | Bart Trojanowski <bart@jukie.net> | 2009-11-25 00:48:49 -0500 |
commit | 905a08788e0e1620ff4202269af2a8e4666767e1 (patch) | |
tree | 18a95a37f1c5d9ed331c03e7f5aafb5216ab3e04 /vim | |
parent | 3fe89c43dd484cc90efabc12055c9dda5383d009 (diff) |
make <Enter> from search screen display the correct message
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/notmuch.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 77e3021d..90678b93 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -53,11 +53,11 @@ function! s:NM_cmd_search(words) endfunction function! s:NM_search_display() - let line = line('.') if !exists('b:nm_raw_data') echo 'no b:nm_raw_data' 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] call s:NM_cmd_show([what]) endif @@ -78,7 +78,7 @@ function! s:NM_cmd_show(words) endfunction -" --- helper function +" --- helper functions function! s:NM_newBuffer(ft, content) enew |