termio: simplify _handle_query_esc()
This commit is contained in:
parent
258cf5c173
commit
e3faaab83d
|
@ -5588,11 +5588,9 @@ _smart_pty_bell(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_handle_query_esc(Evas_Object *obj,
|
_handle_query_esc(Termio *sd)
|
||||||
Termio *sd,
|
|
||||||
Config *config,
|
|
||||||
Termpty *ty)
|
|
||||||
{
|
{
|
||||||
|
Termpty *ty = sd->pty;
|
||||||
if (ty->cur_cmd[1] == 's')
|
if (ty->cur_cmd[1] == 's')
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
@ -5653,7 +5651,7 @@ _smart_pty_command(void *data)
|
||||||
return;
|
return;
|
||||||
if (ty->cur_cmd[0] == 'q')
|
if (ty->cur_cmd[0] == 'q')
|
||||||
{
|
{
|
||||||
_handle_query_esc(obj, sd, config, ty);
|
_handle_query_esc(sd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue