mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
minor fixes
This commit is contained in:
@@ -1690,7 +1690,6 @@ int open_line(
|
|||||||
if (trunc_line && !(flags & OPENLINE_KEEPTRAIL)) {
|
if (trunc_line && !(flags & OPENLINE_KEEPTRAIL)) {
|
||||||
truncate_spaces(saved_line);
|
truncate_spaces(saved_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
ml_replace(curwin->w_cursor.lnum, saved_line, false);
|
ml_replace(curwin->w_cursor.lnum, saved_line, false);
|
||||||
|
|
||||||
int new_len = (int)STRLEN(saved_line);
|
int new_len = (int)STRLEN(saved_line);
|
||||||
@@ -1705,7 +1704,6 @@ int open_line(
|
|||||||
}
|
}
|
||||||
|
|
||||||
saved_line = NULL;
|
saved_line = NULL;
|
||||||
|
|
||||||
if (did_append) {
|
if (did_append) {
|
||||||
changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col,
|
changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col,
|
||||||
curwin->w_cursor.lnum + 1, 1L, true);
|
curwin->w_cursor.lnum + 1, 1L, true);
|
||||||
@@ -1726,7 +1724,6 @@ int open_line(
|
|||||||
} else {
|
} else {
|
||||||
changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col);
|
changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put the cursor on the new line. Careful: the scrollup() above may
|
// Put the cursor on the new line. Careful: the scrollup() above may
|
||||||
|
Reference in New Issue
Block a user