To: vim-dev@vim.org Subject: patch 5.4.42 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.4.42 Problem: ":w" would also cause a truncated message to appear in the message history. Solution: Don't put a kept message in the message history when it starts with "<". Files: src/message.c *** ../vim-5.4.41/src/message.c Tue Aug 10 16:10:41 1999 --- src/message.c Sat Aug 21 18:33:40 1999 *************** *** 110,118 **** return TRUE; ++entered; ! /* Add message to history (unless it's a repeated kept message) */ if (s != keep_msg ! || (last_msg_hist != NULL && last_msg_hist->msg != NULL && STRCMP(s, last_msg_hist->msg))) add_msg_hist(s, -1, attr); --- 110,120 ---- return TRUE; ++entered; ! /* Add message to history (unless it's a repeated kept message or a ! * truncated message) */ if (s != keep_msg ! || (*s != '<' ! && last_msg_hist != NULL && last_msg_hist->msg != NULL && STRCMP(s, last_msg_hist->msg))) add_msg_hist(s, -1, attr); *** ../vim-5.4.41/src/version.h Sat Aug 21 15:40:51 1999 --- src/version.h Sat Aug 21 18:38:48 1999 *************** *** 19,26 **** #define VIM_VERSION_MINOR_STR "4" #define VIM_VERSION_BUILD 57 #define VIM_VERSION_BUILD_STR "57" ! #define VIM_VERSION_PATCHLEVEL 41 ! #define VIM_VERSION_PATCHLEVEL_STR "41" /* * VIM_VERSION_NODOT is used for the runtime directory name. --- 19,26 ---- #define VIM_VERSION_MINOR_STR "4" #define VIM_VERSION_BUILD 57 #define VIM_VERSION_BUILD_STR "57" ! #define VIM_VERSION_PATCHLEVEL 42 ! #define VIM_VERSION_PATCHLEVEL_STR "42" /* * VIM_VERSION_NODOT is used for the runtime directory name. *************** *** 30,35 **** */ #define VIM_VERSION_NODOT "vim54" #define VIM_VERSION_SHORT "5.4" ! #define VIM_VERSION_MEDIUM "5.4.41" ! #define VIM_VERSION_LONG "VIM - Vi IMproved 5.4.41 (1999 Aug 21)" ! #define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 5.4.41 (1999 Aug 21, compiled " --- 30,35 ---- */ #define VIM_VERSION_NODOT "vim54" #define VIM_VERSION_SHORT "5.4" ! #define VIM_VERSION_MEDIUM "5.4.42" ! #define VIM_VERSION_LONG "VIM - Vi IMproved 5.4.42 (1999 Aug 21)" ! #define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 5.4.42 (1999 Aug 21, compiled " -- hundred-and-one symptoms of being an internet addict: 177. You log off of your system because it's time to go to work. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /