comparison src/undo.c @ 26883:7f150a4936f2 v8.2.3970

patch 8.2.3970: error messages are spread out Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 15:58:22 2022 +0000 patch 8.2.3970: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 17:00:04 +0100
parents 255bc9a08e58
children d4e61d61afd9
comparison
equal deleted inserted replaced
26882:196f4d7e2a38 26883:7f150a4936f2
331 331
332 // Don't allow changes in the buffer while editing the cmdline. The 332 // Don't allow changes in the buffer while editing the cmdline. The
333 // caller of getcmdline() may get confused. 333 // caller of getcmdline() may get confused.
334 if (textwinlock != 0 || textlock != 0) 334 if (textwinlock != 0 || textlock != 0)
335 { 335 {
336 emsg(_(e_textlock)); 336 emsg(_(e_not_allowed_to_change_text_here));
337 return FALSE; 337 return FALSE;
338 } 338 }
339 339
340 return TRUE; 340 return TRUE;
341 } 341 }
436 */ 436 */
437 if (netbeans_active()) 437 if (netbeans_active())
438 { 438 {
439 if (netbeans_is_guarded(top, bot)) 439 if (netbeans_is_guarded(top, bot))
440 { 440 {
441 emsg(_(e_guarded)); 441 emsg(_(e_region_is_guarded_cannot_modify));
442 return FAIL; 442 return FAIL;
443 } 443 }
444 if (curbuf->b_p_ro) 444 if (curbuf->b_p_ro)
445 { 445 {
446 emsg(_(e_nbreadonly)); 446 emsg(_(e_netbeans_does_not_allow_changes_in_read_only_files));
447 return FAIL; 447 return FAIL;
448 } 448 }
449 } 449 }
450 #endif 450 #endif
451 #ifdef FEAT_TERMINAL 451 #ifdef FEAT_TERMINAL