Allow defining actions to take when pasting

Fixes #4873
This commit is contained in:
Kovid Goyal
2022-03-24 17:22:46 +05:30
parent cb7aed3234
commit 3c67e991c2
10 changed files with 114 additions and 33 deletions

View File

@@ -591,7 +591,7 @@ def main(args: List[str]) -> Optional[str]:
def handle_result(args: List[str], current_char: str, target_window_id: int, boss: BossType) -> None:
w = boss.window_id_map.get(target_window_id)
if w is not None:
w.paste(current_char)
w.paste_text(current_char)
if __name__ == '__main__':