From 89e6973fe2b57316817877f64f0be5ebc5a25b7f Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 21 Apr 2016 03:04:10 -0400 Subject: tcd: doc, error messages --- src/nvim/eval.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/nvim/eval.c') 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; } -- cgit