non-line scrolling mode in getline

This commit is contained in:
Olof hagsand 2017-09-24 16:58:27 +02:00
parent 41f30efce9
commit 229ddcf5cc
5 changed files with 15 additions and 0 deletions

View file

@ -146,6 +146,9 @@ cli_syntax_set(clicon_handle h,
cli_syntax_t *stx)
{
struct cli_handle *cl = handle(h);
if (cl->cl_stx)
free(cl->cl_stx);
cl->cl_stx = stx;
return 0;
}