summary refs log tree commit diff stats
path: root/doc/examples/vim_file_chooser.vim
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/vim_file_chooser.vim')
-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