diff options
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 09705c436b7..013aad40117 100644 --- a/src/process.c +++ b/src/process.c @@ -1370,8 +1370,10 @@ list_processes_1 (query_only) if (w_tty) { XSETFASTINT (i_tty, XFASTINT (i_buffer) + w_buffer + 1); - XSETFASTINT (i_command, XFASTINT (i_buffer) + w_tty + 1); - } else { + XSETFASTINT (i_command, XFASTINT (i_tty) + w_tty + 1); + } + else + { i_tty = Qnil; XSETFASTINT (i_command, XFASTINT (i_buffer) + w_buffer + 1); } |