diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-25 22:29:16 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-05-25 22:29:16 -0700 |
commit | 52b09fcee1b170ad3be7d26b885b8a509c7ba006 (patch) | |
tree | cdcab235bd99ddce676a43402b0a317cb911269f /lib/reline | |
parent | 8aba3b7a04738c8cebcf3d4ecacd57199d976ae2 (diff) |
Deal with more syntax highlight edge cases
Please refer to the tests again.
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/unicode.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/unicode.rb b/lib/reline/unicode.rb index b12c204ca0..448bdf1b52 100644 --- a/lib/reline/unicode.rb +++ b/lib/reline/unicode.rb @@ -58,7 +58,7 @@ class Reline::Unicode def self.escape_for_print(str) str.chars.map! { |gr| escaped = EscapedPairs[gr.ord] - if escaped && gr != "\n" + if escaped && gr != -"\n" && gr != -"\t" escaped else gr |