mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:8.0.1041: bogus characters when indenting during visual-block append
Problem: Bogus characters appear when indenting kicks in while doing a
visual-block append.
Solution: Recompute when indenting is done. (Christian Brabandt)
e2e69e4813
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user