Mercurial > vim
diff src/register.c @ 25306:078edc1821bf v8.2.3190
patch 8.2.3190: error messages are spread out
Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 20 21:07:36 2021 +0200
patch 8.2.3190: error messages are spread out
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Jul 2021 21:15:05 +0200 |
parents | f397a21b3e4c |
children | ac88cd21ae88 |
line wrap: on
line diff
--- a/src/register.c +++ b/src/register.c @@ -594,7 +594,7 @@ do_execreg( { if (last_cmdline == NULL) { - emsg(_(e_nolastcmd)); + emsg(_(e_no_previous_command_line)); return FAIL; } // don't keep the cmdline containing @: @@ -632,7 +632,7 @@ do_execreg( p = get_last_insert_save(); if (p == NULL) { - emsg(_(e_noinstext)); + emsg(_(e_no_inserted_text_yet)); return FAIL; } retval = put_in_typebuf(p, FALSE, colon, silent); @@ -867,13 +867,13 @@ get_spec_reg( case ':': // last command line if (last_cmdline == NULL && errmsg) - emsg(_(e_nolastcmd)); + emsg(_(e_no_previous_command_line)); *argp = last_cmdline; return TRUE; case '/': // last search-pattern if (last_search_pat() == NULL && errmsg) - emsg(_(e_noprevre)); + emsg(_(e_no_previous_regular_expression)); *argp = last_search_pat(); return TRUE; @@ -881,7 +881,7 @@ get_spec_reg( *argp = get_last_insert_save(); *allocated = TRUE; if (*argp == NULL && errmsg) - emsg(_(e_noinstext)); + emsg(_(e_no_inserted_text_yet)); return TRUE; #ifdef FEAT_SEARCHPATH