comparison src/buffer.c @ 14593:b6b2f7d69c7f v8.1.0310

patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess' commit https://github.com/vim/vim/commit/2f0f871159b2cba862fcd41edab65b17da75c422 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 21 18:50:18 2018 +0200 patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess' Problem: File info message not always suppressed with 'F' in 'shortmess'. (Asheq Imran) Solution: Save and restore msg_silent. (Christian Brabandt, closes #3221)
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Aug 2018 19:00:06 +0200
parents c8f07e8b273e
children 9ffd7d0650c6
comparison
equal deleted inserted replaced
14592:304b849109ac 14593:b6b2f7d69c7f
1033 buf = buflist_new(NULL, NULL, 1L, BLN_CURBUF | BLN_LISTED); 1033 buf = buflist_new(NULL, NULL, 1L, BLN_CURBUF | BLN_LISTED);
1034 else 1034 else
1035 buf = old_curbuf->br_buf; 1035 buf = old_curbuf->br_buf;
1036 if (buf != NULL) 1036 if (buf != NULL)
1037 { 1037 {
1038 int old_msg_silent = msg_silent;
1039
1040 if (shortmess(SHM_FILEINFO))
1041 msg_silent = 1; // prevent fileinfo message
1038 enter_buffer(buf); 1042 enter_buffer(buf);
1043 // restore msg_silent, so that the command line will be shown
1044 msg_silent = old_msg_silent;
1045
1039 # ifdef FEAT_SYN_HL 1046 # ifdef FEAT_SYN_HL
1040 if (old_tw != curbuf->b_p_tw) 1047 if (old_tw != curbuf->b_p_tw)
1041 check_colorcolumn(curwin); 1048 check_colorcolumn(curwin);
1042 # endif 1049 # endif
1043 } 1050 }