diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-19 18:46:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-19 18:46:25 +0100 |
commit | ee8b787bcd15f63a938243770065e704c9b5c85f (patch) | |
tree | e37b80b2ec5d0860baf3afbb6270016c8f4db1cb /src/job.c | |
parent | 79cdf80bed3192add70882bc0aaeede91cc74300 (diff) |
patch 8.2.2014: using CTRL-O in a prompt buffer moves cursor to startv8.2.2014
Problem: Using CTRL-O in a prompt buffer moves cursor to start of the line.
Solution: Do not move the cursor when restarting edit. (closes #7330)
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1628,7 +1628,7 @@ init_prompt(int cmdchar_todo) if (cmdchar_todo == 'A') coladvance((colnr_T)MAXCOL); - if (cmdchar_todo == 'I' || curwin->w_cursor.col <= (int)STRLEN(prompt)) + if (curwin->w_cursor.col < (int)STRLEN(prompt)) curwin->w_cursor.col = (int)STRLEN(prompt); // Make sure the cursor is in a valid position. check_cursor(); |