aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-30 00:34:33 +0300
committerZyX <kp-pav@yandex.ru>2017-03-27 00:18:52 +0300
commit73d37f8b6e9eba0d2f2c59694ae5a13777a7f1cd (patch)
treefcbdae356d647621092eabf566f3a0618f0052e2 /src/nvim/message.c
parent9fd2bf67aa1db66e3465753d5aaaec342f4ce193 (diff)
downloadrneovim-73d37f8b6e9eba0d2f2c59694ae5a13777a7f1cd.tar.gz
rneovim-73d37f8b6e9eba0d2f2c59694ae5a13777a7f1cd.tar.bz2
rneovim-73d37f8b6e9eba0d2f2c59694ae5a13777a7f1cd.zip
executor: Add :lua debug.debug mock
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index bf54284881..4b786c11dd 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1564,7 +1564,6 @@ void msg_puts_attr(const char *const s, const int attr)
/// Like msg_puts_attr(), but with a maximum length "maxlen" (in bytes).
/// When "maxlen" is -1 there is no maximum length.
-/// When "maxlen" is >= 0 the message is not put in the history.
void msg_puts_attr_len(const char *str, const ptrdiff_t maxlen, int attr)
{
// If redirection is on, also write to the redirection file.
@@ -1576,7 +1575,7 @@ void msg_puts_attr_len(const char *str, const ptrdiff_t maxlen, int attr)
}
// if MSG_HIST flag set, add message to history
- if ((attr & MSG_HIST) && maxlen < 0) {
+ if (attr & MSG_HIST) {
add_msg_hist(str, -1, attr);
attr &= ~MSG_HIST;
}