lib/vmail.vim in vmail-1.0.2 vs lib/vmail.vim in vmail-1.0.3
- old
+ new
@@ -223,12 +223,10 @@
endfunc
" gets new messages since last update
function! s:update()
- call s:focus_list_window()
- redraw
let command = s:update_command
echo "checking for new messages. please wait..."
let res = system(command)
if len(split(res, "\n", '')) > 0
setlocal modifiable
@@ -781,10 +779,10 @@
nmap <silent> <buffer> <leader>1 <leader>!
nnoremap <silent> <buffer> <Leader>b :call <SID>focus_list_window()<cr>:call <SID>move_to_mailbox(0)<CR>
nnoremap <silent> <buffer> <Leader>B :call <SID>focus_list_window()<cr>:call <SID>move_to_mailbox(1)<CR>
- nnoremap <silent> <buffer> u :call <SID>update()<CR>
+ nnoremap <silent> <buffer> u :call <SID>focus_list_window()<cr>:call <SID>update()<CR>
nnoremap <silent> <buffer> <Leader>m :call <SID>focus_list_window()<cr>:call <SID>mailbox_window()<CR>
nnoremap <silent> <buffer> <Leader>A :call <SID>save_attachments()<cr>
nnoremap <silent> <buffer> <Space> :call <SID>toggle_maximize_window()<cr>
noremap <silent> <buffer> <leader>vp :call <SID>focus_list_window()<cr>:call <SID>append_messages_to_file()<CR>
nnoremap <silent> <buffer> <Leader>s :call <SID>focus_list_window()<cr>:call <SID>search_query()<cr>