comparison src/undo.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 d4e61d61afd9
children 85866e069c24
comparison
equal deleted inserted replaced
26957:e5b81e2bed22 26958:d92e0d85923f
3178 { 3178 {
3179 if (curbuf->b_u_newhead == NULL) 3179 if (curbuf->b_u_newhead == NULL)
3180 return; // nothing changed before 3180 return; // nothing changed before
3181 if (curbuf->b_u_curhead != NULL) 3181 if (curbuf->b_u_curhead != NULL)
3182 { 3182 {
3183 emsg(_("E790: undojoin is not allowed after undo")); 3183 emsg(_(e_undojoin_is_not_allowed_after_undo));
3184 return; 3184 return;
3185 } 3185 }
3186 if (!curbuf->b_u_synced) 3186 if (!curbuf->b_u_synced)
3187 return; // already unsynced 3187 return; // already unsynced
3188 if (get_undolevel() < 0) 3188 if (get_undolevel() < 0)