fix(extmarks): adjust extmarks when inserting prompt prefix

This commit is contained in:
Liad Oz
2022-12-07 19:07:56 +02:00
parent 8b86cb8f5b
commit da70c39405
2 changed files with 9 additions and 1 deletions

View File

@@ -1484,7 +1484,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.