diff options
author | Ashwin Nanjappa <ashwin.n@outlook.com> | 2014-09-19 13:10:00 +0800 |
---|---|---|
committer | Ashwin Nanjappa <ashwin.n@outlook.com> | 2014-09-19 13:10:00 +0800 |
commit | 93654aa049863d2ef5534dbde09bd17cafd55584 (patch) | |
tree | 362c84dc769fabc7ecbaeff07c9a2cfa22d52598 | |
parent | 41ab10c142d6463610bf5be6329db58430d4070a (diff) | |
download | ranger-93654aa049863d2ef5534dbde09bd17cafd55584.tar.gz |
Added redrawing when we return to Vim from Ranger without opening any
file.
-rw-r--r-- | doc/examples/vim_file_chooser.vim | 2 |
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 |