non-line scrolling mode in getline
This commit is contained in:
parent
41f30efce9
commit
229ddcf5cc
5 changed files with 15 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue