aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-21 03:04:10 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-21 03:15:08 -0400
commit89e6973fe2b57316817877f64f0be5ebc5a25b7f (patch)
treee9245fad5bb75cdbb8d29b35a0a9ad8cbb0840c3 /src/nvim/eval.c
parentec71d87b8140ae097158f7e219b26701aed8158e (diff)
downloadrneovim-89e6973fe2b57316817877f64f0be5ebc5a25b7f.tar.gz
rneovim-89e6973fe2b57316817877f64f0be5ebc5a25b7f.tar.bz2
rneovim-89e6973fe2b57316817877f64f0be5ebc5a25b7f.zip
tcd: doc, error messages
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 9579a8ea75..b2fdef8466 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -9826,7 +9826,7 @@ static void f_getcwd(typval_T *argvars, typval_T *rettv)
}
}
- // It the deepest scope number is `-1` advance the scope by one.
+ // If the deepest scope number is `-1` advance the scope.
if (scope_number[scope] < 0) {
scope++;
}
@@ -9847,8 +9847,7 @@ static void f_getcwd(typval_T *argvars, typval_T *rettv)
win = NULL;
} else if (scope_number[kCdScopeWindow] >= 0) {
if (!tp) {
- EMSG(_("E5001: A higher-level scope cannot be -1 if a lower-level"
- " scope is >= 0."));
+ EMSG(_("E5001: Higher scope cannot be -1 if lower scope is >= 0."));
goto end;
}
@@ -10782,8 +10781,7 @@ static void f_haslocaldir(typval_T *argvars, typval_T *rettv)
win = NULL;
} else if (scope_number[kCdScopeWindow] >= 0) {
if (!tp) {
- EMSG(_("E5001: A higher-level scope cannot be -1 if a lower-level"
- " scope is >= 0."));
+ EMSG(_("E5001: Higher scope cannot be -1 if lower scope is >= 0."));
return;
}