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

ruby-changes:55862

From: Nobuyoshi <ko1@a...>
Date: Mon, 27 May 2019 11:48:28 +0900 (JST)
Subject: [ruby-changes:55862] Nobuyoshi Nakada: 4c277364a5 (trunk): CSI allows empty digit which equals 0

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

From 4c277364a5e70983dcafc9b4d5d990414d61d264 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 27 May 2019 11:47:09 +0900
Subject: CSI allows empty digit which equals 0


diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index a1cb3d0..cba90fd 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -81,7 +81,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L81
   CompletionJourneyData = Struct.new('CompletionJourneyData', :preposing, :postposing, :list, :pointer)
   MenuInfo = Struct.new('MenuInfo', :target, :list)
 
-  CSI_REGEXP = /\e\[(?:\d+;?)*[ABCDEFGHJKSTfminsuhl]/
+  CSI_REGEXP = /\e\[[\d;]*[ABCDEFGHJKSTfminsuhl]/
   NON_PRINTING_ESCAPES = "\1\2"
 
   def initialize(config)
-- 
cgit v0.10.2


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

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