Mercurial > vim
comparison src/map.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 | 4d3c68196d05 |
children | 634aed775408 |
comparison
equal
deleted
inserted
replaced
25305:4032f1628500 | 25306:078edc1821bf |
---|---|
2721 switch (do_map((*cmdp == 'n') ? 2 : (*cmdp == 'u'), | 2721 switch (do_map((*cmdp == 'n') ? 2 : (*cmdp == 'u'), |
2722 eap->arg, mode, isabbrev)) | 2722 eap->arg, mode, isabbrev)) |
2723 { | 2723 { |
2724 case 1: emsg(_(e_invarg)); | 2724 case 1: emsg(_(e_invarg)); |
2725 break; | 2725 break; |
2726 case 2: emsg((isabbrev ? _(e_no_such_abbreviation) : _(e_nomap))); | 2726 case 2: emsg((isabbrev ? _(e_no_such_abbreviation) |
2727 : _(e_no_such_mapping))); | |
2727 break; | 2728 break; |
2728 } | 2729 } |
2729 } | 2730 } |
2730 | 2731 |
2731 /* | 2732 /* |