summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-29 22:37:05 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-29 22:37:05 +0100
commit9e636b9d2ef54552383daebf290d916b3d001823 (patch)
treede1946ef20a5338f42dbf38b36c8e748b989001a /src/buffer.c
parentfc376e0b1a36a2ef153e28752c61342554386886 (diff)
patch 8.2.5041: cannot close a terminal popup with "NONE" jobv8.2.5041
Problem: Cannot close a terminal popup with "NONE" job. Solution: Adjust the conditions for whether a job is running. (closes #10498)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 88528e9f33..efec431c82 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3282,7 +3282,7 @@ buflist_list(exarg_T *eap)
{
#ifdef FEAT_TERMINAL
job_running = term_job_running(buf->b_term);
- job_none_open = job_running && term_none_open(buf->b_term);
+ job_none_open = term_none_open(buf->b_term);
#endif
// skip unlisted buffers, unless ! was used
if ((!buf->b_p_bl && !eap->forceit && !vim_strchr(eap->arg, 'u'))
@@ -3318,9 +3318,9 @@ buflist_list(exarg_T *eap)
changed_char = (buf->b_flags & BF_READERR) ? 'x'
: (bufIsChanged(buf) ? '+' : ' ');
#ifdef FEAT_TERMINAL
- if (term_job_running(buf->b_term))
+ if (job_running)
{
- if (term_none_open(buf->b_term))
+ if (job_none_open)
ro_char = '?';
else
ro_char = 'R';