aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-11 10:39:02 +0200
committerGitHub <noreply@github.com>2022-05-11 10:39:02 +0200
commit96a125b2076f75d4273acd1ddcf66e76190b0857 (patch)
tree4c22aa01d32b8f27f1127d88dc5f8dc5334c5198 /src/nvim/ex_getln.c
parent3a5abcd649f3637e3292dd595dd197e85d1a2272 (diff)
parentdfcc58466505f7fb5f62d636a67facaeea143285 (diff)
downloadrneovim-96a125b2076f75d4273acd1ddcf66e76190b0857.tar.gz
rneovim-96a125b2076f75d4273acd1ddcf66e76190b0857.tar.bz2
rneovim-96a125b2076f75d4273acd1ddcf66e76190b0857.zip
Merge pull request #18366 from famiu/feat/api/nvim_cmd
feat(api): add `nvim_cmd`
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 00bb0499b0..e3e7a5281a 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -33,6 +33,7 @@
#include "nvim/func_attr.h"
#include "nvim/garray.h"
#include "nvim/getchar.h"
+#include "nvim/globals.h"
#include "nvim/highlight.h"
#include "nvim/highlight_defs.h"
#include "nvim/highlight_group.h"
@@ -2522,7 +2523,7 @@ char *get_text_locked_msg(void)
bool curbuf_locked(void)
{
if (curbuf->b_ro_locked > 0) {
- emsg(_("E788: Not allowed to edit another buffer now"));
+ emsg(_(e_cannot_edit_other_buf));
return true;
}
return allbuf_locked();