comparison src/buffer.c @ 3411:3465a9e77588 v7.3.471

updated for version 7.3.471 Problem: Can't abort listing placed signs. Solution: Check "got_int". (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Fri, 16 Mar 2012 14:32:15 +0100
parents e61c3b09ae86
children e7ff3251dfa1
comparison
equal deleted inserted replaced
3410:94601b379f38 3411:3465a9e77588
5555 msg_putchar('\n'); 5555 msg_putchar('\n');
5556 if (rbuf == NULL) 5556 if (rbuf == NULL)
5557 buf = firstbuf; 5557 buf = firstbuf;
5558 else 5558 else
5559 buf = rbuf; 5559 buf = rbuf;
5560 while (buf != NULL) 5560 while (buf != NULL && !got_int)
5561 { 5561 {
5562 if (buf->b_signlist != NULL) 5562 if (buf->b_signlist != NULL)
5563 { 5563 {
5564 vim_snprintf(lbuf, BUFSIZ, _("Signs for %s:"), buf->b_fname); 5564 vim_snprintf(lbuf, BUFSIZ, _("Signs for %s:"), buf->b_fname);
5565 MSG_PUTS_ATTR(lbuf, hl_attr(HLF_D)); 5565 MSG_PUTS_ATTR(lbuf, hl_attr(HLF_D));
5566 msg_putchar('\n'); 5566 msg_putchar('\n');
5567 } 5567 }
5568 for (p = buf->b_signlist; p != NULL; p = p->next) 5568 for (p = buf->b_signlist; p != NULL && !got_int; p = p->next)
5569 { 5569 {
5570 vim_snprintf(lbuf, BUFSIZ, _(" line=%ld id=%d name=%s"), 5570 vim_snprintf(lbuf, BUFSIZ, _(" line=%ld id=%d name=%s"),
5571 (long)p->lnum, p->id, sign_typenr2name(p->typenr)); 5571 (long)p->lnum, p->id, sign_typenr2name(p->typenr));
5572 MSG_PUTS(lbuf); 5572 MSG_PUTS(lbuf);
5573 msg_putchar('\n'); 5573 msg_putchar('\n');