summary refs log tree commit diff stats
path: root/doc
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 /doc
parent41ab10c142d6463610bf5be6329db58430d4070a (diff)
downloadranger-93654aa049863d2ef5534dbde09bd17cafd55584.tar.gz
Added redrawing when we return to Vim from Ranger without opening any
file.
Diffstat (limited to 'doc')
-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
ad2efa759811cc'>^
45a26b11 ^


fbb0f81f ^
30b5f112 ^
71679a31 ^

fbb0f81f ^
45a26b11 ^
fbb0f81f ^
45a26b11 ^
fbb0f81f ^
2f82f50a ^
86c1c388 ^
1a3dc91e ^
fbb0f81f ^

fbb0f81f ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

fbb0f81f ^
b21edfaa ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77