diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 04:13:29 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 10:00:53 -0400 |
commit | 6c8851be4e5ce8cbd6f224451fae8a0adc292bf6 (patch) | |
tree | fb3644fcd5566cac85a186513e0ba451505c1f36 /src/nvim/ops.c | |
parent | 27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d (diff) | |
download | rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.gz rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.bz2 rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.zip |
lint
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index d6f60f33da..9e837c1e12 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2049,8 +2049,9 @@ void op_insert(oparg_T *oap, long count1) ind_pre = (colnr_T)getwhitecols_curline(); firstline = ml_get(oap->start.lnum) + bd.textcol; - if (oap->op_type == OP_APPEND) + if (oap->op_type == OP_APPEND) { firstline += bd.textlen; + } pre_textlen = (long)STRLEN(firstline); } @@ -4132,8 +4133,8 @@ format_lines ( if (next_leader_len > 0) { (void)del_bytes(next_leader_len, false, false); mark_col_adjust(curwin->w_cursor.lnum, (colnr_T)0, 0L, - (long)-next_leader_len); - } else if (second_indent > 0) { /* the "leader" for FO_Q_SECOND */ + (long)-next_leader_len); + } else if (second_indent > 0) { // the "leader" for FO_Q_SECOND int indent = (int)getwhitecols_curline(); if (indent > 0) { |