comparison src/ex_docmd.c @ 26958:d92e0d85923f v8.2.4008

patch 8.2.4008: error messages are spread out Commit: https://github.com/vim/vim/commit/677658ae49de31fe2e5b1fa6d93fdfab85a4362e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 16:09:06 2022 +0000 patch 8.2.4008: 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 Wed, 05 Jan 2022 17:15:05 +0100
parents b34ddbca305c
children 043a15b37bf1
comparison
equal deleted inserted replaced
26957:e5b81e2bed22 26958:d92e0d85923f
6021 if (cmdwin_type != 0) 6021 if (cmdwin_type != 0)
6022 cmdwin_result = K_IGNORE; 6022 cmdwin_result = K_IGNORE;
6023 else 6023 else
6024 # endif 6024 # endif
6025 if (first_tabpage->tp_next == NULL) 6025 if (first_tabpage->tp_next == NULL)
6026 emsg(_("E784: Cannot close last tab page")); 6026 emsg(_(e_cannot_close_last_tab_page));
6027 else 6027 else
6028 { 6028 {
6029 tab_number = get_tabpage_arg(eap); 6029 tab_number = get_tabpage_arg(eap);
6030 if (eap->errmsg == NULL) 6030 if (eap->errmsg == NULL)
6031 { 6031 {
7364 if (new_dir == NULL || allbuf_locked()) 7364 if (new_dir == NULL || allbuf_locked())
7365 return FALSE; 7365 return FALSE;
7366 7366
7367 if (vim_strchr(p_cpo, CPO_CHDIR) != NULL && curbufIsChanged() && !forceit) 7367 if (vim_strchr(p_cpo, CPO_CHDIR) != NULL && curbufIsChanged() && !forceit)
7368 { 7368 {
7369 emsg(_("E747: Cannot change directory, buffer is modified (add ! to override)")); 7369 emsg(_(e_cannot_change_directory_buffer_is_modified_add_bang_to_override));
7370 return FALSE; 7370 return FALSE;
7371 } 7371 }
7372 7372
7373 // ":cd -": Change to previous directory 7373 // ":cd -": Change to previous directory
7374 if (STRCMP(new_dir, "-") == 0) 7374 if (STRCMP(new_dir, "-") == 0)