rb_nav 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|