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.
Files changed (3) hide show
  1. data/lib/rb_nav/version.rb +1 -1
  2. data/lib/rb_nav.vim +0 -4
  3. metadata +1 -1
@@ -1,4 +1,4 @@
1
1
  module RbNav
2
2
 
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
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>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rb_nav
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi