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