mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
fix(terminal): emit Termrequest for all OSC sequences #33181
Problem: osc 0/1/2/52 didn't emit TermRequest. Solution: emit `TermRequest` for all recognized osc.
This commit is contained in:
@@ -1948,28 +1948,26 @@ static int on_osc(int command, VTermStringFragment frag, void *user)
|
|||||||
case 0:
|
case 0:
|
||||||
settermprop_string(state, VTERM_PROP_ICONNAME, frag);
|
settermprop_string(state, VTERM_PROP_ICONNAME, frag);
|
||||||
settermprop_string(state, VTERM_PROP_TITLE, frag);
|
settermprop_string(state, VTERM_PROP_TITLE, frag);
|
||||||
return 1;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
settermprop_string(state, VTERM_PROP_ICONNAME, frag);
|
settermprop_string(state, VTERM_PROP_ICONNAME, frag);
|
||||||
return 1;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
settermprop_string(state, VTERM_PROP_TITLE, frag);
|
settermprop_string(state, VTERM_PROP_TITLE, frag);
|
||||||
return 1;
|
break;
|
||||||
|
|
||||||
case 52:
|
case 52:
|
||||||
if (state->selection.callbacks) {
|
if (state->selection.callbacks) {
|
||||||
osc_selection(state, frag);
|
osc_selection(state, frag);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
if (state->fallbacks && state->fallbacks->osc) {
|
||||||
|
if ((*state->fallbacks->osc)(command, frag, state->fbdata)) {
|
||||||
default:
|
return 1;
|
||||||
if (state->fallbacks && state->fallbacks->osc) {
|
|
||||||
if ((*state->fallbacks->osc)(command, frag, state->fbdata)) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user