Fix #2420
This commit is contained in:
parent
ac2c21e046
commit
3c2f3ecd8e
@ -300,7 +300,7 @@ class UnicodeInput(Handler):
|
|||||||
def update_codepoints(self):
|
def update_codepoints(self):
|
||||||
codepoints = None
|
codepoints = None
|
||||||
if self.mode is HEX:
|
if self.mode is HEX:
|
||||||
q: Tuple[str, Optional[Union[str, Sequence[int]]]] = self.mode, None
|
q: Tuple[str, Optional[Union[str, Sequence[int]]]] = (self.mode, None)
|
||||||
codepoints = self.recent
|
codepoints = self.recent
|
||||||
elif self.mode is EMOTICONS:
|
elif self.mode is EMOTICONS:
|
||||||
q = self.mode, None
|
q = self.mode, None
|
||||||
|
|||||||
@ -209,14 +209,14 @@ class Boss:
|
|||||||
if w is not None:
|
if w is not None:
|
||||||
yield w
|
yield w
|
||||||
return
|
return
|
||||||
if field == 'env':
|
if field != 'env':
|
||||||
|
pat: MatchPatternType = re.compile(exp)
|
||||||
|
else:
|
||||||
kp, vp = exp.partition('=')[::2]
|
kp, vp = exp.partition('=')[::2]
|
||||||
if vp:
|
if vp:
|
||||||
pat: MatchPatternType = re.compile(kp), re.compile(vp)
|
pat = re.compile(kp), re.compile(vp)
|
||||||
else:
|
else:
|
||||||
pat = re.compile(kp), None
|
pat = re.compile(kp), None
|
||||||
else:
|
|
||||||
pat = re.compile(exp)
|
|
||||||
for window in self.all_windows:
|
for window in self.all_windows:
|
||||||
if window.matches(field, pat):
|
if window.matches(field, pat):
|
||||||
yield window
|
yield window
|
||||||
|
|||||||
@ -35,7 +35,7 @@ class ScrollWindow(RemoteCommand):
|
|||||||
|
|
||||||
def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType:
|
def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType:
|
||||||
amt = args[0]
|
amt = args[0]
|
||||||
amount: Tuple[Union[str, int], Optional[str]] = amt, None
|
amount: Tuple[Union[str, int], Optional[str]] = (amt, None)
|
||||||
if amt not in ('start', 'end'):
|
if amt not in ('start', 'end'):
|
||||||
pages = 'p' in amt
|
pages = 'p' in amt
|
||||||
amt = amt.replace('p', '')
|
amt = amt.replace('p', '')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user