0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.471

Problem:    Can't abort listing placed signs.
Solution:   Check "got_int". (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2012-03-16 14:32:15 +01:00
parent 84f7235bdb
commit 1c0b03e857
3 changed files with 5 additions and 3 deletions

View File

@@ -5557,7 +5557,7 @@ sign_list_placed(rbuf)
buf = firstbuf;
else
buf = rbuf;
while (buf != NULL)
while (buf != NULL && !got_int)
{
if (buf->b_signlist != NULL)
{
@@ -5565,7 +5565,7 @@ sign_list_placed(rbuf)
MSG_PUTS_ATTR(lbuf, hl_attr(HLF_D));
msg_putchar('\n');
}
for (p = buf->b_signlist; p != NULL; p = p->next)
for (p = buf->b_signlist; p != NULL && !got_int; p = p->next)
{
vim_snprintf(lbuf, BUFSIZ, _(" line=%ld id=%d name=%s"),
(long)p->lnum, p->id, sign_typenr2name(p->typenr));