Mercurial > vim
comparison src/message.c @ 19181:94eda51ba9ba v8.2.0149
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Commit: https://github.com/vim/vim/commit/8a7d6542b33e5d2b352262305c3bfdb2d14e1cf8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 26 15:56:19 2020 +0100
patch 8.2.0149: maintaining a Vim9 branch separately is more work
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Jan 2020 16:00:05 +0100 |
parents | 6fb11e7fb9cd |
children | fdfe44ac6a1a |
comparison
equal
deleted
inserted
replaced
19180:8edf0aeb71b9 | 19181:94eda51ba9ba |
---|---|
842 | 842 |
843 void | 843 void |
844 emsg_invreg(int name) | 844 emsg_invreg(int name) |
845 { | 845 { |
846 semsg(_("E354: Invalid register name: '%s'"), transchar(name)); | 846 semsg(_("E354: Invalid register name: '%s'"), transchar(name)); |
847 } | |
848 | |
849 /* | |
850 * Give an error message which contains %s for "name[len]". | |
851 */ | |
852 void | |
853 emsg_namelen(char *msg, char_u *name, int len) | |
854 { | |
855 char_u *copy = vim_strnsave((char_u *)name, len); | |
856 | |
857 semsg(msg, copy == NULL ? "NULL" : (char *)copy); | |
847 } | 858 } |
848 | 859 |
849 /* | 860 /* |
850 * Like msg(), but truncate to a single line if p_shm contains 't', or when | 861 * Like msg(), but truncate to a single line if p_shm contains 't', or when |
851 * "force" is TRUE. This truncates in another way as for normal messages. | 862 * "force" is TRUE. This truncates in another way as for normal messages. |