diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-12-05 23:33:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 23:33:22 -0500 |
commit | 523f03b506bf577811c0e136bc852cdb89f92c00 (patch) | |
tree | 300f7c7b36f176e593e52c253c6ed2cb25777c49 /src/nvim/message.c | |
parent | 4306b395defb7ef8f614127e0fbe362656346da3 (diff) | |
download | rneovim-523f03b506bf577811c0e136bc852cdb89f92c00.tar.gz rneovim-523f03b506bf577811c0e136bc852cdb89f92c00.tar.bz2 rneovim-523f03b506bf577811c0e136bc852cdb89f92c00.zip |
lint (#16526)
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 6fcd4cef8a..8a6ac2decc 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -839,13 +839,11 @@ void msg_schedule_semsg(const char *const fmt, ...) multiqueue_put(main_loop.events, msg_semsg_event, 1, s); } -/* - * Like msg(), but truncate to a single line if p_shm contains 't', or when - * "force" is TRUE. This truncates in another way as for normal messages. - * Careful: The string may be changed by msg_may_trunc()! - * Returns a pointer to the printed message, if wait_return() not called. - */ -char *msg_trunc_attr(char *s, int force, int attr) +// Like msg(), but truncate to a single line if p_shm contains 't', or when +// "force" is true. This truncates in another way as for normal messages. +// Careful: The string may be changed by msg_may_trunc()! +// Returns a pointer to the printed message, if wait_return() not called. +char *msg_trunc_attr(char *s, bool force, int attr) { int n; @@ -869,7 +867,7 @@ char *msg_trunc_attr(char *s, int force, int attr) * Return a pointer to where the truncated message starts. * Note: May change the message by replacing a character with '<'. */ -char_u *msg_may_trunc(int force, char_u *s) +char_u *msg_may_trunc(bool force, char_u *s) { int room; |