diff options
| author | blasty <peter@haxx.in> | 2026-07-24 21:56:04 +0200 |
|---|---|---|
| committer | blasty <peter@haxx.in> | 2026-07-24 21:56:04 +0200 |
| commit | 71b4dd0e9a2d97517c99d7bf6924dc6575140374 (patch) | |
| tree | 0fe85e3d1e89bc26921d11c7dd72c06400e6afd6 /idatui/app.py | |
| parent | split-view phase 1: side-by-side listing <-> pseudocode layout (diff) | |
| download | ida-tui-71b4dd0e9a2d97517c99d7bf6924dc6575140374.tar.gz ida-tui-71b4dd0e9a2d97517c99d7bf6924dc6575140374.tar.xz ida-tui-71b4dd0e9a2d97517c99d7bf6924dc6575140374.zip | |
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.
Diffstat (limited to 'idatui/app.py')
| -rw-r--r-- | idatui/app.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
