diff options
author | Petter Wahlman <pwahlman@cisco.com> | 2014-03-16 08:20:00 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-19 07:53:16 -0300 |
commit | edabc6f4c7277262568801ff870808170ac32327 (patch) | |
tree | 9e34374d5d6a2816a0bc432bab84e540be9d3f18 /src/indent.c | |
parent | 59f2430a8d543fc57a31d489a649ec87a6ca9715 (diff) | |
download | rneovim-edabc6f4c7277262568801ff870808170ac32327.tar.gz rneovim-edabc6f4c7277262568801ff870808170ac32327.tar.bz2 rneovim-edabc6f4c7277262568801ff870808170ac32327.zip |
adapt to the style guildelines
semi-automated harvest of low hanging fruit:
change the unorthodox use of whitespace.
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/indent.c b/src/indent.c index a6db81b672..38a267d728 100644 --- a/src/indent.c +++ b/src/indent.c @@ -12,7 +12,8 @@ /* * Count the size (in window cells) of the indent in the current line. */ -int get_indent(void) { +int get_indent(void) +{ return get_indent_str(ml_get_curline(), (int)curbuf->b_p_ts); } @@ -113,7 +114,7 @@ set_indent ( todo -= tab_pad; ++ind_len; ind_done += tab_pad; - } else { + } else { --todo; ++ind_len; ++ind_done; @@ -192,7 +193,7 @@ set_indent ( while (vim_iswhite(*p)) ++p; - } else { + } else { todo = size; newline = alloc(ind_len + line_len); if (newline == NULL) @@ -218,7 +219,7 @@ set_indent ( break; todo -= tab_pad; ind_done += tab_pad; - } else { + } else { --todo; ++ind_done; } @@ -305,7 +306,7 @@ int copy_indent(int size, char_u *src) break; todo -= tab_pad; ind_done += tab_pad; - } else { + } else { --todo; ++ind_done; } @@ -424,7 +425,8 @@ int inindent(int extra) /* * Get indent level from 'indentexpr'. */ -int get_expr_indent(void) { +int get_expr_indent(void) +{ int indent; pos_T save_pos; colnr_T save_curswant; @@ -498,7 +500,8 @@ static int lisp_match(char_u *p) * Update from Sergey Khorev: * I tried to fix the first two issues. */ -int get_lisp_indent(void) { +int get_lisp_indent(void) +{ pos_T *pos, realpos, paren; int amount; char_u *that; |