summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-07-31 12:43:23 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-31 12:43:23 +0200
commit28d8421bfb3327d7a5e81369977e8fc108b0229e (patch)
tree520f67d2496e3b19eda8593e614d3e8c38cd13e0 /src/misc2.c
parent890ee4e2be1dca0c07a91f836e26baead952ae7c (diff)
downloadvim-git-28d8421bfb3327d7a5e81369977e8fc108b0229e.tar.gz
patch 8.2.3254: win_gettype() does not recognize a quickfix windowv8.2.3254
Problem: win_gettype() does not recognize a quickfix window. Solution: Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes #8676)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc2.c b/src/misc2.c
index bbf55bb00..2e83d2dd1 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1574,10 +1574,10 @@ ga_concat_len(garray_T *gap, char_u *s, size_t len)
{
if (s == NULL || *s == NUL)
return;
- if (ga_grow(gap, len) == OK)
+ if (ga_grow(gap, (int)len) == OK)
{
- mch_memmove((char *)gap->ga_data + gap->ga_len, s, (size_t)len);
- gap->ga_len += len;
+ mch_memmove((char *)gap->ga_data + gap->ga_len, s, len);
+ gap->ga_len += (int)len;
}
}