[前][次][番号順一覧][スレッド一覧]

ruby-changes:59467

From: aycabta <ko1@a...>
Date: Wed, 25 Dec 2019 09:52:58 +0900 (JST)
Subject: [ruby-changes:59467] ed5b4bae6a (master): The behavior of vi_end_of_transmission should be the same of vi_list_or_eof

https://git.ruby-lang.org/ruby.git/commit/?id=ed5b4bae6a

From ed5b4bae6a4f991a0c5299581bd0b137a98d3723 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Wed, 25 Dec 2019 09:52:25 +0900
Subject: The behavior of vi_end_of_transmission should be the same of
 vi_list_or_eof


diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index d668da7..10996e4 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -1916,18 +1916,6 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1916
   private def vi_yank(key)
   end
 
-  private def vi_end_of_transmission(key)
-    if @line.empty?
-      @line = nil
-      if @buffer_of_lines.size > 1
-        scroll_down(@highest_in_all - @first_line_started_from)
-      end
-      Reline::IOGate.move_cursor_column(0)
-      @eof = true
-      finish
-    end
-  end
-
   private def vi_list_or_eof(key)
     if (not @is_multiline and @line.empty?) or (@is_multiline and @line.empty? and @buffer_of_lines.size == 1)
       @line = nil
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]