aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-15 08:04:49 +0800
committerGitHub <noreply@github.com>2024-11-15 08:04:49 +0800
commitfa0dcde3d9f17f85baa9dd41aa751c123281ced3 (patch)
treeef8336f8d67f8dfb363cf9d755be7871ada567ca /src/nvim/message.c
parent05d354e2165c2c331a33949d49095eef3503a32f (diff)
downloadrneovim-fa0dcde3d9f17f85baa9dd41aa751c123281ced3.tar.gz
rneovim-fa0dcde3d9f17f85baa9dd41aa751c123281ced3.tar.bz2
rneovim-fa0dcde3d9f17f85baa9dd41aa751c123281ced3.zip
vim-patch:9.1.0864: message history is fixed to 200 (#31215)
Problem: message history is fixed to 200 Solution: Add the 'msghistory' option, increase the default value to 500 (Shougo Matsushita) closes: vim/vim#16048 https://github.com/vim/vim/commit/4bd9b2b2467e696061104a029000e9824c6c609e Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index e8ba2a9aeb..e8f20916b8 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -981,7 +981,7 @@ static void add_msg_hist_multihl(const char *s, int len, int hl_id, bool multili
}
// Don't let the message history get too big
- while (msg_hist_len > MAX_MSG_HIST_LEN) {
+ while (msg_hist_len > p_mhi) {
delete_first_msg();
}