summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-01-25 22:02:51 +0000
committerBram Moolenaar <Bram@vim.org>2006-01-25 22:02:51 +0000
commit28c258fd24342fe52e85059d68ce69cf9ef5f8cd (patch)
tree6f8dc9ce77b063c0498f1ca554464395fb995666 /src/buffer.c
parent7df351eb8aecf8e542c7ebecc4ec734107a8aacb (diff)
downloadvim-28c258fd24342fe52e85059d68ce69cf9ef5f8cd.zip
updated for version 7.0187
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 83c96903f..6d654b26a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4758,7 +4758,21 @@ buf_spname(buf)
{
#if defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)
if (bt_quickfix(buf))
- return _("[Error List]");
+ {
+ win_T *win;
+
+ /*
+ * For location list window, w_llist_ref points to the location list.
+ * For quickfix window, w_llist_ref is NULL.
+ */
+ FOR_ALL_WINDOWS(win)
+ if (win->w_buffer == buf)
+ break;
+ if (win != NULL && win->w_llist_ref != NULL)
+ return _("[Location List]");
+ else
+ return _("[Error List]");
+ }
#endif
#ifdef FEAT_QUICKFIX
/* There is no _file_ when 'buftype' is "nofile", b_sfname