diff options
author | James McCoy <jamessan@jamessan.com> | 2018-08-23 10:45:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-23 10:45:58 -0400 |
commit | dfbb75fdabe3829abd0a1f0f905adc7dc5740d15 (patch) | |
tree | fb3644fcd5566cac85a186513e0ba451505c1f36 /src/nvim/misc1.c | |
parent | 012cd35bfbe2c175a31a2fba14cf1bdee6f06e8c (diff) | |
parent | 6c8851be4e5ce8cbd6f224451fae8a0adc292bf6 (diff) | |
download | rneovim-dfbb75fdabe3829abd0a1f0f905adc7dc5740d15.tar.gz rneovim-dfbb75fdabe3829abd0a1f0f905adc7dc5740d15.tar.bz2 rneovim-dfbb75fdabe3829abd0a1f0f905adc7dc5740d15.zip |
Merge pull request #8889 from janlazo/vim-8.0.0999
[RDY] vim-patch:8.0.{999,1041,1043,1044}
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 84d8c995a6..e87c754eb8 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -884,8 +884,7 @@ open_line ( && curbuf->b_p_lisp && curbuf->b_p_ai) { fixthisline(get_lisp_indent); - p = get_cursor_line_ptr(); - ai_col = (colnr_T)(skipwhite(p) - p); + ai_col = (colnr_T)getwhitecols_curline(); } /* * May do indenting after opening a new line. @@ -898,8 +897,7 @@ open_line ( ? KEY_OPEN_FORW : KEY_OPEN_BACK, ' ', linewhite(curwin->w_cursor.lnum))) { do_c_expr_indent(); - p = get_cursor_line_ptr(); - ai_col = (colnr_T)(skipwhite(p) - p); + ai_col = (colnr_T)getwhitecols_curline(); } if (vreplace_mode != 0) State = vreplace_mode; |