1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

CSI allows empty digit which equals 0

This commit is contained in:
Nobuyoshi Nakada 2019-05-27 11:47:09 +09:00
parent 0aa9b003de
commit 4c277364a5
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -81,7 +81,7 @@ class Reline::LineEditor
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)