summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAshwin Nanjappa <ashwin.n@outlook.com>2014-09-19 13:10:00 +0800
committerAshwin Nanjappa <ashwin.n@outlook.com>2014-09-19 13:10:00 +0800
commit93654aa049863d2ef5534dbde09bd17cafd55584 (patch)
tree362c84dc769fabc7ecbaeff07c9a2cfa22d52598
parent41ab10c142d6463610bf5be6329db58430d4070a (diff)
downloadranger-93654aa049863d2ef5534dbde09bd17cafd55584.tar.gz
Added redrawing when we return to Vim from Ranger without opening any
file.
-rw-r--r--doc/examples/vim_file_chooser.vim2
1 files changed, 2 insertions, 0 deletions
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