diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-03-16 14:32:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-03-16 14:32:15 +0100 |
commit | 1c0b03e857c3f0eb9201f1046150a63866ebe49e (patch) | |
tree | c53f5433a37c65126313cf4687f75b4c2f1636b1 | |
parent | 84f7235bdbcc58876869ba8047530ef60443061a (diff) |
updated for version 7.3.471v7.3.471
Problem: Can't abort listing placed signs.
Solution: Check "got_int". (Christian Brabandt)
-rw-r--r-- | src/buffer.c | 4 | ||||
-rw-r--r-- | src/ex_cmds.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 5fda06d71b..7ff949c021 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 ba18d9d050..661fba6c72 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 6b773ffd0a..41d967aff3 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 471, +/**/ 470, /**/ 469, |