comparison src/window.c @ 26893:79c76ca2c53c v8.2.3975

patch 8.2.3975: error messages are spread out Commit: https://github.com/vim/vim/commit/cbadefe25a27ded93548eaa7a325d2a04bf55d7c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 19:33:50 2022 +0000 patch 8.2.3975: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 20:45:03 +0100
parents 7f150a4936f2
children d4e61d61afd9
comparison
equal deleted inserted replaced
26892:71e7c936307f 26893:79c76ca2c53c
772 static int 772 static int
773 check_split_disallowed() 773 check_split_disallowed()
774 { 774 {
775 if (split_disallowed > 0) 775 if (split_disallowed > 0)
776 { 776 {
777 emsg(_("E242: Can't split a window while closing another")); 777 emsg(_(e_cant_split_window_while_closing_another));
778 return FAIL; 778 return FAIL;
779 } 779 }
780 if (curwin->w_buffer->b_locked_split) 780 if (curwin->w_buffer->b_locked_split)
781 { 781 {
782 emsg(_(e_cannot_split_window_when_closing_buffer)); 782 emsg(_(e_cannot_split_window_when_closing_buffer));