mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
A new option to clear selections when they no longer reflect the contents of the clipboard
This commit is contained in:
@@ -296,8 +296,10 @@ def linenum_handle_result(args: list[str], data: dict[str, Any], target_window_i
|
||||
w.paste_bytes(text)
|
||||
elif program == '@':
|
||||
set_clipboard_string(text)
|
||||
boss.handle_clipboard_loss('clipboard')
|
||||
elif program == '*':
|
||||
set_primary_selection(text)
|
||||
boss.handle_clipboard_loss('primary')
|
||||
elif program.startswith('@'):
|
||||
boss.set_clipboard_buffer(program[1:], text)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user