mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Variable rename in XTermParser
This commit is contained in:
@@ -148,7 +148,7 @@ class XTermParser(Parser[events.Event]):
|
|||||||
# to find a match, and should issue everything we've seen within
|
# to find a match, and should issue everything we've seen within
|
||||||
# the suspected sequence as Key events instead.
|
# the suspected sequence as Key events instead.
|
||||||
sequence_character = yield read1()
|
sequence_character = yield read1()
|
||||||
next_sequence = sequence + sequence_character
|
new_sequence = sequence + sequence_character
|
||||||
|
|
||||||
threshold_exceeded = len(sequence) > _MAX_SEQUENCE_SEARCH_THRESHOLD
|
threshold_exceeded = len(sequence) > _MAX_SEQUENCE_SEARCH_THRESHOLD
|
||||||
found_escape = sequence_character and sequence_character == ESC
|
found_escape = sequence_character and sequence_character == ESC
|
||||||
@@ -156,7 +156,7 @@ class XTermParser(Parser[events.Event]):
|
|||||||
if threshold_exceeded:
|
if threshold_exceeded:
|
||||||
# We exceeded the sequence length threshold, so reissue all the
|
# We exceeded the sequence length threshold, so reissue all the
|
||||||
# characters in that sequence as key-presses.
|
# characters in that sequence as key-presses.
|
||||||
reissue_sequence_as_keys(next_sequence)
|
reissue_sequence_as_keys(new_sequence)
|
||||||
break
|
break
|
||||||
|
|
||||||
if found_escape:
|
if found_escape:
|
||||||
@@ -167,7 +167,7 @@ class XTermParser(Parser[events.Event]):
|
|||||||
reissue_sequence_as_keys(sequence)
|
reissue_sequence_as_keys(sequence)
|
||||||
break
|
break
|
||||||
|
|
||||||
sequence = next_sequence
|
sequence = new_sequence
|
||||||
|
|
||||||
self.debug_log(f"sequence={sequence!r}")
|
self.debug_log(f"sequence={sequence!r}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user