aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2024-12-22 15:42:48 +0100
committerGitHub <noreply@github.com>2024-12-22 06:42:48 -0800
commitd1e00a5f6dce9cf1fa80f613d4d27019966e5a79 (patch)
tree12e76eee3ff8ddaffcaace004d1cb28ce547341a /src/nvim/ex_getln.c
parentc7a4197a5c344f02241eed0761c86487ee5bbd96 (diff)
downloadrneovim-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/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 2c1653006c..09d4c88dcd 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -3142,8 +3142,9 @@ static bool color_cmdline(CmdlineInfo *colored_ccline)
#define PRINT_ERRMSG(...) \
do { \
+ msg_scroll = true; \
msg_putchar('\n'); \
- msg_printf_hl(HLF_E, __VA_ARGS__); \
+ smsg(HLF_E, __VA_ARGS__); \
printed_errmsg = true; \
} while (0)
bool ret = true;