Method: VMAgui#set_current_view
- Defined in:
- lib/vimamsa/gui.rb
#set_current_view(view) ⇒ Object
Activate that window which has the given view
791 792 793 794 795 796 797 798 799 800 801 802 |
# File 'lib/vimamsa/gui.rb', line 791 def set_current_view(view) # Window of current view: w = @windows.find { |k, v| v[:sw].child == view } # All other windows: otherw = @windows.find_all { |k, v| v[:sw].child != view } if !w.nil? set_active_window(w[0]) for k, x in otherw x[:sw].child.focus_out() end end end |