I get the following error when pasting something into kitty:
Key action failed
paste_from_clipboard
cannot access local variable 'replaced_newlines' where it is not associated with a value
Press e to see detailed traceback or any other key to exit
Traceback (most recent call last):
File "/usr/bin/../lib/kitty/kitty/boss.py", line 1588, in combine
if self.dispatch_action(actions[0], window_for_dispatch, dispatch_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/../lib/kitty/kitty/boss.py", line 1542, in dispatch_action
passthrough = f(*key_action.args)
^^^^^^^^^^^^^^^^^^^
File "/usr/bin/../lib/kitty/kitty/boss.py", line 2136, in paste_from_clipboard
self.paste_to_active_window(text)
File "/usr/bin/../lib/kitty/kitty/boss.py", line 2131, in paste_to_active_window
w.paste_with_actions(text)
File "/usr/bin/../lib/kitty/kitty/window.py", line 1628, in paste_with_actions
if replaced_c0_control_codes or replaced_newlines:
^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'replaced_newlines' where it is not associated with a value
Press Enter or Esc to exit
Describe the bug
I get the following error when pasting something into kitty:
I think it's caused by this commit: https://github.com/kovidgoyal/kitty/commit/ef9d279305ac30111cfa76ae9d54429a9e4de7c8
EDIT: can confirm it's that commit
To Reproduce Steps to reproduce the behavior:
Screenshots
Environment details