diff options
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index dd680cb9f..63553469d 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -548,8 +548,10 @@ static int vtysh_execute_func(const char *line, int pager) line = "end"; vline = cmd_make_strvec(line); - if (vline == NULL && vty->is_paged) { - vty_close_pager(vty); + + if (vline == NULL) { + if (vty->is_paged) + vty_close_pager(vty); return CMD_SUCCESS; } |