summaryrefslogtreecommitdiffstats
path: root/src/edit.c
AgeCommit message (Collapse)Author
2023-03-26patch 9.0.1429: invalid memory access when ending insert modev9.0.1429Bram Moolenaar
Problem: Invalid memory access when ending insert mode. Solution: Check if the insert_skip value is valid.
2023-03-25patch 9.0.1428: cursor in wrong position when leaving insert modev9.0.1428Bram Moolenaar
Problem: Cursor in wrong position when leaving insert mode. Solution: Update the w_valid flags. Position the cursor also when not redrawing. (closes #12137)
2023-02-26patch 9.0.1356: cannot cancel "gr" with Escv9.0.1356zeertzjq
Problem: Cannot cancel "gr" with Esc. Solution: Make "gr<Esc>" do nothing. (closes #12064)
2023-02-25patch 9.0.1354: "gr CTRL-G" stays in virtual replace modev9.0.1354Bram Moolenaar
Problem: "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty) Solution: Prepend CTRL-V before control characters. (closes #12045)
2023-02-23patch 9.0.1349: "gr" with a count failsv9.0.1349Bram Moolenaar
Problem: "gr" with a count fails. Solution: Break out of the loop only after using the count.
2023-02-23patch 9.0.1347: "gr CTRL-O" stays in Insert modev9.0.1347Bram Moolenaar
Problem: "gr CTRL-O" stays in Insert mode. (Pierre Ganty) Solution: Do not set restart_edit when "cmdchar" is 'v'. (closes #12045)
2023-02-21patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336Yegappan Lakshmanan
Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
2023-01-09patch 9.0.1166: code is indented more than necessaryv9.0.1166Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11792)
2023-01-01patch 9.0.1126: bracketed paste can be enabled when it is not recognizedv9.0.1126Bram Moolenaar
Problem: Bracketed paste can be enabled when pasted text is not recognized. Solution: Output t_BE only when t_PS and t_PE are set.
2022-12-27patch 9.0.1105: code is indented too muchv9.0.1105Yegappan Lakshmanan
Problem: Code is indented too much. Solution: Use an early return. (Yegappan Lakshmanan, closes #11756)
2022-12-08patch 9.0.1036: undo misbehaves when writing from an insert mode mappingv9.0.1036Bram Moolenaar
Problem: Undo misbehaves when writing from an insert mode mapping. Solution: Sync undo when writing. (closes #11674)
2022-12-01patch 9.0.0980: the keyboard state response may end up in a shell commandv9.0.0980Bram Moolenaar
Problem: The keyboard state response may end up in a shell command. Solution: Only request the keyboard protocol state when the typeahead is empty, no more commands are following and not exiting. Add the t_RK termcap entry for this.
2022-11-23patch 9.0.0930: cannot debug the Kitty keyboard protocol with TermDebugv9.0.0930Bram Moolenaar
Problem: Cannot debug the Kitty keyboard protocol with TermDebug. Solution: Add Kitty keyboard protocol support to the libvterm fork. Recognize the escape sequences that the protocol generates. Add the 'keyprotocol' option to allow the user to specify for which terminal what protocol is to be used, instead of hard-coding this. Add recognizing the kitty keyboard protocol status.
2022-11-22patch 9.0.0917: the WinScrolled autocommand event is not enoughv9.0.0917Bram Moolenaar
Problem: The WinScrolled autocommand event is not enough. Solution: Add WinResized and provide information about what changed. (closes #11576)
2022-11-15patch 9.0.0886: horizontal mouse scroll only works in the GUIv9.0.0886Christopher Plewright
Problem: Horizontal mouse scroll only works in the GUI. Solution: Make horizontal mouse scroll also work in a terminal. (Christopher Plewright, closes #11448)
2022-10-14patch 9.0.0751: 'scrolloff' does not work well with 'smoothscroll'v9.0.0751Bram Moolenaar
Problem: 'scrolloff' does not work well with 'smoothscroll'. Solution: Make positioning the cursor a bit better. Rename functions.
2022-10-13patch 9.0.0747: too many #ifdefsv9.0.0747Martin Tournoij
Problem: Too many #ifdefs. Solution: Gradudate the +cmdline_info feature. (Martin Tournoij, closes #11330)
2022-10-12patch 9.0.0734: cursor position invalid when scrolling with 'smoothscroll'v9.0.0734Bram Moolenaar
Problem: Cursor position invalid when scrolling with 'smoothscroll' set. (Ernie Rael) Solution: Add w_valid_skipcol and clear flags when it changes. Adjust w_skipcol after moving the cursor.
2022-10-05patch 9.0.0664: bad redrawing with spell checking, using "C" and "$" in 'cpo'v9.0.0664Bram Moolenaar
Problem: Bad redrawing with spell checking, using "C" and "$" in 'cpo'. Solution: Do not redraw the next line when "$" is in 'cpo'. (closes #11285)
2022-10-04patch 9.0.0657: too many #ifdefsv9.0.0657Martin Tournoij
Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
2022-09-27patch 9.0.0608: with spelling, deleting a full stop does not update next linev9.0.0608Bram Moolenaar
Problem: With spell checking, deleting a full stop at the end of a line does not update SpellCap at the start of the next line. Solution: Update the next line when characters have been deleted. Also when using undo.
2022-09-27patch 9.0.0603: with 'nosplitscroll' folds are not handled correctlyv9.0.0603Luuk van Baal
Problem: With 'nosplitscroll' folds are not handled correctly. Solution: Take care of closed folds when moving the cursor. (Luuk van Baal, closes #11234)
2022-09-25patch 9.0.0590: after exiting Insert mode spelling not checked in next linev9.0.0590Bram Moolenaar
Problem: After exiting Insert mode spelling is not checked in the next line. Solution: When spelling is enabled redraw the next line after exiting Insert mode in case the spell highlight needs updating.
2022-08-16patch 9.0.0218: reading before the start of the linev9.0.0218Bram Moolenaar
Problem: Reading before the start of the line. Solution: When displaying "$" check the column is not negative.
2022-08-14patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-01patch 9.0.0130: cursor position wrong when inserting around virtual textv9.0.0130Bram Moolenaar
Problem: Cursor position wrong when inserting around virtual text. Solution: Update the cursor position properly.
2022-07-31patch 9.0.0124: code has more indent than neededv9.0.0124zeertzjq
Problem: Code has more indent than needed. Solution: Use continue and return statements. (closes #10824)
2022-07-25patch 9.0.0067: cannot show virtual textv9.0.0067Bram Moolenaar
Problem: Cannot show virtual text. Solution: Initial changes for virtual text support, using text properties.
2022-06-30patch 9.0.0013: reproducing memory access errors can be difficultv9.0.0013Bram Moolenaar
Problem: Reproducing memory access errors can be difficult. Solution: When testing, copy each line to allocated memory, so that valgrind can detect accessing memory before and/or after it. Fix uncovered problems.
2022-06-26patch 8.2.5162: reading before the start of the line with BS in Replace modev8.2.5162Bram Moolenaar
Problem: Reading before the start of the line with BS in Replace mode. Solution: Check the cursor column is more than zero.
2022-06-04patch 8.2.5056: the channel log only contains some of the raw terminal outputv8.2.5056Bram Moolenaar
Problem: The channel log only contains some of the raw terminal output. Solution: Add the "o" flag to log all terminal output. Use it for "--log".
2022-05-27patch 8.2.5029: "textlock" is always zerov8.2.5029zeertzjq
Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
2022-05-21patch 8.2.4993: smart/C/lisp indenting is optionalv8.2.4993Bram Moolenaar
Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
2022-05-16patch 8.2.4969: changing text in Visual mode may cause invalid memory accessv8.2.4969Bram Moolenaar
Problem: Changing text in Visual mode may cause invalid memory access. Solution: Check the Visual position after making a change.
2022-05-14patch 8.2.4951: smart indenting done when not enabledv8.2.4951Bram Moolenaar
Problem: Smart indenting done when not enabled. Solution: Check option values before setting can_si. (closes #10420)
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-05-07patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-05patch 8.2.4876: MS-Windows: Shift-BS results in strange char in powershellv8.2.4876Christian Brabandt
Problem: MS-Windows: Shift-BS results in strange character in powershell. Solution: Add K_S_BS. (Christian Brabandt, closes #10283, closes #10279)
2022-05-04patch 8.2.4865: :startinsert right after :stopinsert may not workv8.2.4865zeertzjq
Problem: :startinsert right after :stopinsert does not work when popup menu is still visible. Solution: Use ins_compl_active() instead of pum_visible(). (closes #10352)
2022-04-29patch 8.2.4846: termcodes test failsv8.2.4846zeertzjq
Problem: Termcodes test fails. Solution: use CTRL-SHIFT-V to insert an unsimplified key. (closes #10316)
2022-04-15patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar
Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
2022-04-12patch 8.2.4739: accessing freed memory after WinScrolled autocmd eventv8.2.4739zeertzjq
Problem: Accessing freed memory after WinScrolled autocmd event. Solution: Check the window pointer is still valid. (closes #10156) Remove the argument from may_trigger_winscrolled().
2022-04-09patch 8.2.4723: the ModeChanged autocmd event is inefficientv8.2.4723LemonBoy
Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes #10134) Rename trigger_modechanged() to may_trigger_modechanged().
2022-04-08patch 8.2.4713: plugins cannot track text scrollingv8.2.4713LemonBoy
Problem: Plugins cannot track text scrolling. Solution: Add the WinScrolled event. (closes #10102)
2022-04-07patch 8.2.4710: smart indenting does not work after completionv8.2.4710Christian Brabandt
Problem: Smart indenting does not work after completion. Solution: Set "can_si". (Christian Brabandt, closes #10113, closes #558)
2022-04-07patch 8.2.4707: redrawing could be a bit more efficientv8.2.4707zeertzjq
Problem: Redrawing could be a bit more efficient. Solution: Optimize redrawing. (closes #10105)
2022-04-01patch 8.2.4660: cursorcolumn is sometimes not correctv8.2.4660Bram Moolenaar
Problem: Cursorcolumn is sometimes not correct. Solution: Recompute the cursor column when entering Insert mode and the cursor is on a character wider than a screen cell.
2022-03-27patch 8.2.4638: superfluous check if a redraw is needed for 'cursorline'v8.2.4639v8.2.4638zeertzjq
Problem: Superfluous check if a redraw is needed for 'cursorline'. Solution: Remove check_redraw_cursorline(). (closes #10030, closes #10029)
2022-03-26patch 8.2.4630: 'cursorline' not always updated with 'culopt' is "screenline"v8.2.4630Bram Moolenaar
Problem: 'cursorline' not always updated with 'cursorlineopt' is "screenline". Solution: Call check_redraw_cursorline() more often. (closes #10013)
2022-01-31patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar
Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.