rb_nav 0.2.2 → 0.2.3
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 +0 -4
- metadata +1 -1
data/lib/rb_nav/version.rb
CHANGED
data/lib/rb_nav.vim
CHANGED
@@ -24,7 +24,6 @@ endfunc
|
|
24
24
|
|
25
25
|
func! s:prepare_autocomplete()
|
26
26
|
let s:current_file = bufname('')
|
27
|
-
let s:orig_bufnr = bufnr('')
|
28
27
|
leftabove split rb_nav_prompt
|
29
28
|
setlocal textwidth=0
|
30
29
|
setlocal buftype=nofile
|
@@ -112,12 +111,10 @@ endfunc
|
|
112
111
|
func! s:open_class_file()
|
113
112
|
if (getline(2) =~ '^\s*$')
|
114
113
|
close
|
115
|
-
exe winbufnr(s:orig_bufnr)."wincmd w"
|
116
114
|
return
|
117
115
|
endif
|
118
116
|
let selection = s:trimString(getline(2))
|
119
117
|
close
|
120
|
-
exe winbufnr(s:orig_bufnr)."wincmd w"
|
121
118
|
if len(split(selection, '\s\+')) == 1
|
122
119
|
" user pressed return without autocompleting, so find the first match
|
123
120
|
for x in s:selection_list
|
@@ -160,7 +157,6 @@ func! s:jump_to_method()
|
|
160
157
|
call feedkeys("z\<cr>", "t")
|
161
158
|
endfunc
|
162
159
|
|
163
|
-
autocmd BufEnter,BufRead *.rb let s:orig_bufnr = bufnr('')
|
164
160
|
|
165
161
|
nnoremap <Leader>n :call <SID>autocomplete_classes()<cr>
|
166
162
|
nnoremap <Leader>N :call <SID>autocomplete_methods()<cr>
|