Skip to content

Commit a521559

Browse files
committed
SDelete: redraw more often to avoid pending dialog messages
1 parent 2ea9085 commit a521559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/startify.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,11 @@ function! startify#session_delete(bang, ...) abort
352352
call inputrestore()
353353

354354
if !filereadable(session_path)
355-
echomsg 'No such session: '. session_path
355+
redraw | echo 'No such session: '. session_path
356356
return
357357
endif
358358

359-
echo 'Really delete '. session_path .'? [y/n]'
359+
redraw | echo 'Really delete '. session_path .'? [y/n]' | redraw
360360
if a:bang || nr2char(getchar()) == 'y'
361361
if delete(session_path) == 0
362362
echo 'Deleted session '. session_path .'!'

0 commit comments

Comments
 (0)