aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-09-10 22:35:47 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:08:06 +0300
commit8b0fa64ed3dbd4376cbfa195526ec97d8c944a97 (patch)
tree273c501b22e765081a700142e75515f1e44315af /src
parent40feac6efcc75395bb20da2b028b67a2b6e95bd9 (diff)
downloadrneovim-8b0fa64ed3dbd4376cbfa195526ec97d8c944a97.tar.gz
rneovim-8b0fa64ed3dbd4376cbfa195526ec97d8c944a97.tar.bz2
rneovim-8b0fa64ed3dbd4376cbfa195526ec97d8c944a97.zip
message: Remove incorrect assertion
It was there only to prove that *now* `len` argument is not used to forbid putting message into history (i.e. that Neovim behaviour did not change). After this commit it should be possible to use msg_puts_attr_len with len>=0 to put message into history should new code need this.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/message.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 1eab9a403b..83f2735b50 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1581,7 +1581,6 @@ void msg_puts_attr_len(const char *const str, const ptrdiff_t len, int attr)
// if MSG_HIST flag set, add message to history
if (attr & MSG_HIST) {
- assert(len < 0);
add_msg_hist(str, (int)len, attr);
attr &= ~MSG_HIST;
}