747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
|
# File 'lib/vimamsa/gui.rb', line 747
def set_two_column
return if @two_column
@windows[2] = new_window(2)
w1 = @windows[1]
w2 = @windows[2]
@pane = Gtk::Paned.new(:horizontal)
@vbox.remove(w1[:overlay])
@pane.set_start_child(w2[:overlay])
@pane.set_end_child(w1[:overlay])
@vbox.attach(@pane, 0, 2, 2, 1)
w2[:sw].show
@two_column = true
last = vma.buffers.get_last_visited_id
if !last.nil?
set_buffer_to_window(last, 2)
else
bf = create_new_buffer "\n\n", "buff", false
set_buffer_to_window(bf.id, 2)
end
end
|