diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-12-22 15:42:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-22 06:42:48 -0800 |
commit | d1e00a5f6dce9cf1fa80f613d4d27019966e5a79 (patch) | |
tree | 12e76eee3ff8ddaffcaace004d1cb28ce547341a /src/nvim/undo.c | |
parent | c7a4197a5c344f02241eed0761c86487ee5bbd96 (diff) | |
download | rneovim-d1e00a5f6dce9cf1fa80f613d4d27019966e5a79.tar.gz rneovim-d1e00a5f6dce9cf1fa80f613d4d27019966e5a79.tar.bz2 rneovim-d1e00a5f6dce9cf1fa80f613d4d27019966e5a79.zip |
fix(messages): typo and unwanted truncation in msg_outtrans_long #31669
- Typo/bug in msg_outtrans_long passing string length as "hist" argument.
- Avoid truncating message in msg_outtrans_long with ext_messages (followup to
1097d239c307a10a87fa995c4cfbe5987939e177).
- Remove `_hl` from `msg_keep`, `smsg_keep` as there is no non-`_hl` variant.
- `msg_printf_hl` is removed (identical to `smsg` except it sets
`msg_scroll = true`, seemingly as a caveat to force a more prompt in
cmdline mode). Move this logic to the only the only place this was
used in ex_getln.c.
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index d523e55640..45401ca5e1 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -2596,12 +2596,12 @@ static void u_undo_end(bool did_undo, bool absolute, bool quiet) check_pos(curbuf, &VIsual); } - smsg_hl_keep(0, _("%" PRId64 " %s; %s #%" PRId64 " %s"), - u_oldcount < 0 ? (int64_t)-u_oldcount : (int64_t)u_oldcount, - _(msgstr), - did_undo ? _("before") : _("after"), - uhp == NULL ? 0 : (int64_t)uhp->uh_seq, - msgbuf); + smsg_keep(0, _("%" PRId64 " %s; %s #%" PRId64 " %s"), + u_oldcount < 0 ? (int64_t)-u_oldcount : (int64_t)u_oldcount, + _(msgstr), + did_undo ? _("before") : _("after"), + uhp == NULL ? 0 : (int64_t)uhp->uh_seq, + msgbuf); } /// Put the timestamp of an undo header in "buf[buflen]" in a nice format. |