mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
cli: disable pager in editor mode
nmcli closes its stdout when spawning the pager and thus, in editor
mode, nothing is printed once the pager terminates. For an interactive
mode like the editor, the pager seems not suitable, disable it.
Fixes: 24c079e4b2
This commit is contained in:
parent
a675a619f4
commit
ea909e38dc
1 changed files with 2 additions and 1 deletions
|
|
@ -1484,7 +1484,8 @@ nmc_terminal_spawn_pager (const NmcConfig *nmc_config)
|
|||
pid_t parent_pid;
|
||||
int fd[2];
|
||||
|
||||
if ( nm_cli.pager_pid > 0
|
||||
if ( nm_cli.nmc_config.in_editor
|
||||
|| nm_cli.pager_pid > 0
|
||||
|| nmc_config->print_output == NMC_PRINT_TERSE
|
||||
|| !use_colors (nmc_config->use_colors)
|
||||
|| g_strcmp0 (pager, "") == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue