mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
Make the clickable range of No the same as Yes
Since the two options are treated equally, the same amount of mouse clickable range are given.
This commit is contained in:
parent
17e31565e2
commit
4dd29c726a
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ class Choose(Handler):
|
|||
extra = (self.screen_size.cols - w) // 2
|
||||
x = extra
|
||||
nx = x + wcswidth(yes) + len(sep)
|
||||
self.clickable_ranges = {'y': Range(x, x + wcswidth(yes) - 1, y), 'n': Range(nx, nx + 1, y)}
|
||||
self.clickable_ranges = {'y': Range(x, x + wcswidth(yes) - 1, y), 'n': Range(nx, nx + 2, y)}
|
||||
self.print(' ' * extra + text, end='')
|
||||
|
||||
def on_text(self, text: str, in_bracketed_paste: bool = False) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue