Mercurial > vim
comparison src/digraph.c @ 26958:d92e0d85923f v8.2.4008
patch 8.2.4008: error messages are spread out
Commit: https://github.com/vim/vim/commit/677658ae49de31fe2e5b1fa6d93fdfab85a4362e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 16:09:06 2022 +0000
patch 8.2.4008: 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 17:15:05 +0100 |
parents | d91aea2a612c |
children | c9474ae175f4 |
comparison
equal
deleted
inserted
replaced
26957:e5b81e2bed22 | 26958:d92e0d85923f |
---|---|
2659 if (kp->from == NULL || kp->to == NULL | 2659 if (kp->from == NULL || kp->to == NULL |
2660 || STRLEN(kp->from) + STRLEN(kp->to) >= KMAP_LLEN | 2660 || STRLEN(kp->from) + STRLEN(kp->to) >= KMAP_LLEN |
2661 || *kp->from == NUL || *kp->to == NUL) | 2661 || *kp->from == NUL || *kp->to == NUL) |
2662 { | 2662 { |
2663 if (kp->to != NULL && *kp->to == NUL) | 2663 if (kp->to != NULL && *kp->to == NUL) |
2664 emsg(_("E791: Empty keymap entry")); | 2664 emsg(_(e_empty_keymap_entry)); |
2665 vim_free(kp->from); | 2665 vim_free(kp->from); |
2666 vim_free(kp->to); | 2666 vim_free(kp->to); |
2667 } | 2667 } |
2668 else | 2668 else |
2669 ++curbuf->b_kmap_ga.ga_len; | 2669 ++curbuf->b_kmap_ga.ga_len; |