rb_nav 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rb_nav/version.rb +1 -1
- data/lib/rb_nav.vim +2 -0
- metadata +1 -1
data/lib/rb_nav/version.rb
CHANGED
data/lib/rb_nav.vim
CHANGED
@@ -24,6 +24,7 @@ endfunc
|
|
24
24
|
|
25
25
|
func! s:prepare_autocomplete()
|
26
26
|
let s:current_file = bufname('')
|
27
|
+
let s:orig_bufnr = bufnr('')
|
27
28
|
leftabove split rb_nav_prompt
|
28
29
|
setlocal textwidth=0
|
29
30
|
setlocal buftype=nofile
|
@@ -114,6 +115,7 @@ func! s:open_class_file()
|
|
114
115
|
endif
|
115
116
|
let selection = s:trimString(getline(2))
|
116
117
|
close
|
118
|
+
exe winbufnr(s:orig_bufnr)."wincmd w"
|
117
119
|
if len(split(selection, '\s\+')) == 1
|
118
120
|
" user pressed return without autocompleting, so find the first match
|
119
121
|
for x in s:selection_list
|