From 93654aa049863d2ef5534dbde09bd17cafd55584 Mon Sep 17 00:00:00 2001 From: Ashwin Nanjappa Date: Fri, 19 Sep 2014 13:10:00 +0800 Subject: Added redrawing when we return to Vim from Ranger without opening any file. --- doc/examples/vim_file_chooser.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/examples') diff --git a/doc/examples/vim_file_chooser.vim b/doc/examples/vim_file_chooser.vim index 68947d2d..df6aacc9 100644 --- a/doc/examples/vim_file_chooser.vim +++ b/doc/examples/vim_file_chooser.vim @@ -14,11 +14,13 @@ function! RangeChooser() "exec 'silent !ranger --choosefile=' . shellescape(temp) exec 'silent !ranger --choosefiles=' . shellescape(temp) if !filereadable(temp) + redraw! " Nothing to read. return endif let names = readfile(temp) if empty(names) + redraw! " Nothing to open. return endif -- cgit 1.4.1-2-gfad0