Mercurial > vim
comparison src/autocmd.c @ 26863:6ee19c6ae8a2 v8.2.3960
patch 8.2.3960: error messages are spread out
Commit: https://github.com/vim/vim/commit/f1474d801bbdb73406dd3d1f931f515f99e86dfa
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 31 19:59:55 2021 +0000
patch 8.2.3960: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 Dec 2021 21:15:02 +0100 |
parents | df2de1e63de0 |
children | bce848ec8b1b |
comparison
equal
deleted
inserted
replaced
26862:e91b94a101d1 | 26863:6ee19c6ae8a2 |
---|---|
513 { | 513 { |
514 int i; | 514 int i; |
515 | 515 |
516 i = au_find_group(name); | 516 i = au_find_group(name); |
517 if (i == AUGROUP_ERROR) // the group doesn't exist | 517 if (i == AUGROUP_ERROR) // the group doesn't exist |
518 semsg(_("E367: No such group: \"%s\""), name); | 518 semsg(_(e_no_such_group_str), name); |
519 else if (i == current_augroup) | 519 else if (i == current_augroup) |
520 emsg(_("E936: Cannot delete the current group")); | 520 emsg(_(e_cannot_delete_current_group)); |
521 else | 521 else |
522 { | 522 { |
523 event_T event; | 523 event_T event; |
524 AutoPat *ap; | 524 AutoPat *ap; |
525 int in_use = FALSE; | 525 int in_use = FALSE; |
1203 { | 1203 { |
1204 // refuse to add buffer-local ap if buffer number is invalid | 1204 // refuse to add buffer-local ap if buffer number is invalid |
1205 if (is_buflocal && (buflocal_nr == 0 | 1205 if (is_buflocal && (buflocal_nr == 0 |
1206 || buflist_findnr(buflocal_nr) == NULL)) | 1206 || buflist_findnr(buflocal_nr) == NULL)) |
1207 { | 1207 { |
1208 semsg(_("E680: <buffer=%d>: invalid buffer number "), | 1208 semsg(_(e_buffer_nr_invalid_buffer_number), buflocal_nr); |
1209 buflocal_nr); | |
1210 return FAIL; | 1209 return FAIL; |
1211 } | 1210 } |
1212 | 1211 |
1213 ap = ALLOC_ONE(AutoPat); | 1212 ap = ALLOC_ONE(AutoPat); |
1214 if (ap == NULL) | 1213 if (ap == NULL) |