diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2016-06-10 11:21:49 -0400 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-06-14 20:10:11 +0200 |
commit | aa22b5fd9a10a6094ea3d9cd88d3bfb3496a1acf (patch) | |
tree | 2351674920166351d59bf7f711a9ea6b6f2bd31f /src/nvim/option.c | |
parent | 20447ba0983a29537ae9d8df435fdf0f412c4258 (diff) | |
download | rneovim-aa22b5fd9a10a6094ea3d9cd88d3bfb3496a1acf.tar.gz rneovim-aa22b5fd9a10a6094ea3d9cd88d3bfb3496a1acf.tar.bz2 rneovim-aa22b5fd9a10a6094ea3d9cd88d3bfb3496a1acf.zip |
Add new functionality to the `=` marker in the STL
This new functionality is explained in the documentation.
Also, many tests have been added to the buffer_spec.lua file
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index ac906d82ad..52a1fd8558 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3403,9 +3403,10 @@ char_u *check_stl_option(char_u *s) if (!*s) break; s++; - if (*s != '%' && *s != ')') - ++itemcnt; - if (*s == '%' || *s == STL_TRUNCMARK || *s == STL_MIDDLEMARK) { + if (*s != '%' && *s != ')') { + itemcnt++; + } + if (*s == '%' || *s == STL_TRUNCMARK || *s == STL_SEPARATE) { s++; continue; } |