From: Bram Moolenaar Date: Fri, 16 Mar 2012 13:32:15 +0000 (+0100) Subject: updated for version 7.3.471 X-Git-Tag: v7.3.471 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c0b03e857c3f0eb9201f1046150a63866ebe49e;p=vim updated for version 7.3.471 Problem: Can't abort listing placed signs. Solution: Check "got_int". (Christian Brabandt) --- diff --git a/src/buffer.c b/src/buffer.c index 5fda06d71..7ff949c02 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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)); diff --git a/src/ex_cmds.c b/src/ex_cmds.c index ba18d9d05..661fba6c7 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -6729,7 +6729,7 @@ ex_sign(eap) if (idx == SIGNCMD_LIST && *arg == NUL) { /* ":sign list": list all defined signs */ - for (sp = first_sign; sp != NULL; sp = sp->sn_next) + for (sp = first_sign; sp != NULL && !got_int; sp = sp->sn_next) sign_list_defined(sp); } else if (*arg == NUL) diff --git a/src/version.c b/src/version.c index 6b773ffd0..41d967aff 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 471, /**/ 470, /**/