From cea4e6a54b811c64fc660dd59e8eaea5cf8bbce8 Mon Sep 17 00:00:00 2001 From: blasty Date: Fri, 24 Jul 2026 21:56:04 +0200 Subject: split: guard toggle behind prompt-active; clear _split in the pilot reset Two small correctness tidies before phase 2: * action_toggle_split now no-ops while a search/rename/... prompt owns the keyboard (parity with the other app actions; a stray 's' can't split mid-edit). * the pilot reset() clears app._split so split state can't leak into the next scenario if one crashes mid-run. --- idatui/app.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'idatui') diff --git a/idatui/app.py b/idatui/app.py index 68e23df..b923a7c 100644 --- a/idatui/app.py +++ b/idatui/app.py @@ -3088,6 +3088,8 @@ class IdaTui(App): def action_toggle_split(self) -> None: """Toggle the side-by-side listing ⇄ pseudocode view (Ghidra-style).""" + if self._prompt_active(): + return # a search/rename/… prompt owns the keyboard if self._cur is None or self.program is None: self._status("open a function first") return -- cgit v1.3.1-sl0p