Merge pull request #21331 from LiadOz/LiadOz/prompt-insert-extmark

fix(extmarks): adjust extmarks when inserting prompt prefix
This commit is contained in:
bfredl
2023-02-02 15:23:09 +01:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -1483,7 +1483,7 @@ static void init_prompt(int cmdchar_todo)
}
curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
coladvance(MAXCOL);
changed_bytes(curbuf->b_ml.ml_line_count, 0);
inserted_bytes(curbuf->b_ml.ml_line_count, 0, 0, (colnr_T)strlen(prompt));
}
// Insert always starts after the prompt, allow editing text after it.