mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 05:07:55 +08:00
fix vim plugin empty mbox message (#136)
This commit is contained in:
@@ -38,7 +38,7 @@ function! himalaya#msg#list()
|
||||
try
|
||||
let mbox = himalaya#mbox#curr_mbox()
|
||||
let page = himalaya#mbox#curr_page()
|
||||
call himalaya#msg#list_with(mbox, page, 0)
|
||||
call himalaya#msg#list_with(mbox, page, 1)
|
||||
catch
|
||||
if !empty(v:exception)
|
||||
redraw | call himalaya#shared#log#err(v:exception)
|
||||
|
||||
@@ -11,12 +11,12 @@ function! himalaya#shared#cli#call(cmd, args, log, should_throw)
|
||||
redraw | call himalaya#shared#log#info(printf("%s [OK]", a:log))
|
||||
return res.response
|
||||
catch
|
||||
redraw | call himalaya#shared#log#info(printf("%s [ERR]", a:log))
|
||||
redraw
|
||||
for line in split(res, "\n")
|
||||
call himalaya#shared#log#err(line)
|
||||
endfor
|
||||
if a:should_throw
|
||||
throw res
|
||||
throw ""
|
||||
endif
|
||||
endtry
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user