Commit 1324372
committed
Pane(fix[display_popup]): raise ValueError when close_on_exit + close_on_success combined
why: tmux counts -E flags via args_count(); 3x -E evaluates as != 2, falls
through to the args_has() branch and silently behaves like 1x -E
(close-on-any-exit), discarding the close_on_success intent entirely.
what:
- Add mutual-exclusion guard: raise ValueError when both close_on_exit and
close_on_success are True
- Assign message to variable first to satisfy EM101/TRY003 linting rules1 parent b842274 commit 1324372
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1259 | 1267 | | |
1260 | 1268 | | |
1261 | 1269 | | |
| |||
0 commit comments