diff src/mark.c @ 25064:8f2262c72178 v8.2.3069

patch 8.2.3069: error messages are spread out Commit: https://github.com/vim/vim/commit/108010aa4720ef023a8ac59004fc0f2bc11125af Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 27 22:03:33 2021 +0200 patch 8.2.3069: error messages are spread out Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Jun 2021 22:15:04 +0200
parents e949ad96ad7a
children e8e2c4d33b9b
line wrap: on
line diff
--- a/src/mark.c
+++ b/src/mark.c
@@ -588,12 +588,12 @@ check_mark(pos_T *pos)
 	// lnum is negative if mark is in another file can can't get that
 	// file, error message already give then.
 	if (pos->lnum == 0)
-	    emsg(_(e_marknotset));
+	    emsg(_(e_mark_not_set));
 	return FAIL;
     }
     if (pos->lnum > curbuf->b_ml.ml_line_count)
     {
-	emsg(_(e_markinval));
+	emsg(_(e_mark_has_invalid_line_number));
 	return FAIL;
     }
     return OK;