diff options
author | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-20 08:57:49 +0200 |
---|---|---|
committer | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-26 19:32:32 +0200 |
commit | 35fbb4e1ca94acf9d7c6e6be979a1548f1d58bbd (patch) | |
tree | 100c8ad177f4f149f3b9b7a6c4286b98d6e67a11 /src/nvim/sign.c | |
parent | e70609cfac9c64bdf221fa902bba788883e97540 (diff) | |
download | rneovim-35fbb4e1ca94acf9d7c6e6be979a1548f1d58bbd.tar.gz rneovim-35fbb4e1ca94acf9d7c6e6be979a1548f1d58bbd.tar.bz2 rneovim-35fbb4e1ca94acf9d7c6e6be979a1548f1d58bbd.zip |
vim-patch:8.1.0701: sign message not translated and inconsistent spacing
Problem: Sign message not translated and inconsistent spacing.
Solution: Add _() for translation. Add a space. (Ken Takata) Also use
MSG_BUF_LEN instead of BUFSIZ.
https://github.com/vim/vim/commit/d730c8e2974609034016ca66db09d2ef78784343
Diffstat (limited to 'src/nvim/sign.c')
-rw-r--r-- | src/nvim/sign.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c index fac47e6fce..5d6c3d3326 100644 --- a/src/nvim/sign.c +++ b/src/nvim/sign.c @@ -594,8 +594,8 @@ void sign_list_placed(buf_T *rbuf, char_u *sign_group) { buf_T *buf; signlist_T *sign; - char lbuf[BUFSIZ]; - char group[BUFSIZ]; + char lbuf[MSG_BUF_LEN]; + char group[MSG_BUF_LEN]; MSG_PUTS_TITLE(_("\n--- Signs ---")); msg_putchar('\n'); @@ -606,7 +606,7 @@ void sign_list_placed(buf_T *rbuf, char_u *sign_group) } while (buf != NULL && !got_int) { if (buf->b_signlist != NULL) { - vim_snprintf(lbuf, BUFSIZ, _("Signs for %s:"), buf->b_fname); + vim_snprintf(lbuf, MSG_BUF_LEN, _("Signs for %s:"), buf->b_fname); MSG_PUTS_ATTR(lbuf, HL_ATTR(HLF_D)); msg_putchar('\n'); } @@ -618,14 +618,15 @@ void sign_list_placed(buf_T *rbuf, char_u *sign_group) continue; } if (sign->group != NULL) { - vim_snprintf(group, BUFSIZ, " group=%s", sign->group->sg_name); + vim_snprintf(group, MSG_BUF_LEN, _(" group=%s"), + sign->group->sg_name); } else { group[0] = '\0'; } - vim_snprintf(lbuf, BUFSIZ, _(" line=%ld id=%d%s name=%s " - "priority=%d"), - (long)sign->lnum, sign->id, group, - sign_typenr2name(sign->typenr), sign->priority); + vim_snprintf(lbuf, MSG_BUF_LEN, + _(" line=%ld id=%d%s name=%s priority=%d"), + (long)sign->lnum, sign->id, group, + sign_typenr2name(sign->typenr), sign->priority); MSG_PUTS(lbuf); msg_putchar('\n'); } |