diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-27 11:47:09 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-27 11:47:09 +0900 |
| commit | 4c277364a5e70983dcafc9b4d5d990414d61d264 (patch) | |
| tree | 74799be179572ba8698f5b64c3725cef3b2eb84f | |
| parent | 0aa9b003de353e690f31ba59ca0a2db1df51b8bf (diff) | |
CSI allows empty digit which equals 0
| -rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index a1cb3d0fd7..cba90fde05 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -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) |
