tcd: doc, error messages

This commit is contained in:
Justin M. Keyes
2016-04-21 03:04:10 -04:00
parent ec71d87b81
commit 89e6973fe2
4 changed files with 56 additions and 68 deletions

View File

@@ -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;
}