Mercurial > vim
comparison src/textprop.c @ 26962:85866e069c24 v8.2.4010
patch 8.2.4010: error messages are spread out
Commit: https://github.com/vim/vim/commit/9d00e4a8146862c17ed429dc6b1b43349acb2b5f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 17:49:15 2022 +0000
patch 8.2.4010: 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 19:00:06 +0100 |
parents | d02d40f0261c |
children | ac75c145f0a9 |
comparison
equal
deleted
inserted
replaced
26961:33c0467b3c52 | 26962:85866e069c24 |
---|---|
799 emsg(_("E968: Need at least one of 'id' or 'type'")); | 799 emsg(_("E968: Need at least one of 'id' or 'type'")); |
800 return; | 800 return; |
801 } | 801 } |
802 if (both && (!id_found || type_id == -1)) | 802 if (both && (!id_found || type_id == -1)) |
803 { | 803 { |
804 emsg(_("E860: Need 'id' and 'type' with 'both'")); | 804 emsg(_(e_need_id_and_type_with_both)); |
805 return; | 805 return; |
806 } | 806 } |
807 | 807 |
808 lnum_start = lnum; | 808 lnum_start = lnum; |
809 | 809 |
1222 emsg(_("E968: Need at least one of 'id' or 'type'")); | 1222 emsg(_("E968: Need at least one of 'id' or 'type'")); |
1223 return; | 1223 return; |
1224 } | 1224 } |
1225 if (both && (id == -1 || type_id == -1)) | 1225 if (both && (id == -1 || type_id == -1)) |
1226 { | 1226 { |
1227 emsg(_("E860: Need 'id' and 'type' with 'both'")); | 1227 emsg(_(e_need_id_and_type_with_both)); |
1228 return; | 1228 return; |
1229 } | 1229 } |
1230 | 1230 |
1231 if (end == 0) | 1231 if (end == 0) |
1232 end = buf->b_ml.ml_line_count; | 1232 end = buf->b_ml.ml_line_count; |