Commit a800cbb
committed
Pane(fix[display_popup]): -C closes existing popup, not close-on-success
why: The -C flag in tmux display-popup means "close any existing popup on the
client" (server_client_clear_overlay), not "close on success exit code." The
close-on-success behavior is achieved by passing -E twice (-EE), which sets
POPUP_CLOSEEXITZERO in tmux's popup.c.
what:
- Fix close_on_success to emit -E -E instead of -C
- Add close_existing parameter for the actual -C flag behavior
- Update docstrings to document correct flag semantics1 parent ee8e7bb commit a800cbb
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| 1189 | + | |
1189 | 1190 | | |
1190 | 1191 | | |
1191 | 1192 | | |
| |||
1210 | 1211 | | |
1211 | 1212 | | |
1212 | 1213 | | |
1213 | | - | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1214 | 1218 | | |
1215 | 1219 | | |
1216 | 1220 | | |
| |||
1249 | 1253 | | |
1250 | 1254 | | |
1251 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1252 | 1259 | | |
1253 | 1260 | | |
1254 | 1261 | | |
1255 | 1262 | | |
1256 | | - | |
| 1263 | + | |
1257 | 1264 | | |
1258 | 1265 | | |
1259 | 1266 | | |
| |||
0 commit comments