diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-20 01:17:42 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-05-12 12:01:25 -0400 |
commit | 0ff959329bb8a8ae22856a65b5289b41bdae433a (patch) | |
tree | 26329b6d1a18613fad9212f48fd98e88a8c50cbb /src/nvim/buffer.c | |
parent | d840ff7b7019a08171c07568c1fdd0841f6dd07e (diff) | |
download | rneovim-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/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index f54979eb1e..e3897e3929 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3607,6 +3607,7 @@ int build_stl_str_hl( case STL_OFFSET_X: base = kNumBaseHexadecimal; + // fallthrough case STL_OFFSET: { long l = ml_find_line_or_offset(wp->w_buffer, wp->w_cursor.lnum, NULL); @@ -3617,6 +3618,7 @@ int build_stl_str_hl( } case STL_BYTEVAL_X: base = kNumBaseHexadecimal; + // fallthrough case STL_BYTEVAL: num = byteval; if (num == NL) |