aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-04-20 01:17:42 -0400
committerJames McCoy <jamessan@jamessan.com>2017-05-12 12:01:25 -0400
commit0ff959329bb8a8ae22856a65b5289b41bdae433a (patch)
tree26329b6d1a18613fad9212f48fd98e88a8c50cbb /src/nvim/eval.c
parentd840ff7b7019a08171c07568c1fdd0841f6dd07e (diff)
downloadrneovim-0ff959329bb8a8ae22856a65b5289b41bdae433a.tar.gz
rneovim-0ff959329bb8a8ae22856a65b5289b41bdae433a.tar.bz2
rneovim-0ff959329bb8a8ae22856a65b5289b41bdae433a.zip
*: Comment intentional fallthroughs
Falling through a switch case should be commented so it's clear that behavior is intentional.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 56a6632fad..31e5ae8806 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -9596,13 +9596,15 @@ static void f_getcwd(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (from) {
break;
}
- case kCdScopeTab: // FALLTHROUGH
+ // fallthrough
+ case kCdScopeTab:
assert(tp);
from = tp->tp_localdir;
if (from) {
break;
}
- case kCdScopeGlobal: // FALLTHROUGH
+ // fallthrough
+ case kCdScopeGlobal:
if (globaldir) { // `globaldir` is not always set.
from = globaldir;
} else if (os_dirname(cwd, MAXPATHL) == FAIL) { // Get the OS CWD.