summaryrefslogtreecommitdiffstats
path: root/src/edit.c
AgeCommit message (Collapse)Author
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.
2022-01-28patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
2022-01-25patch 8.2.4218: illegal memory access with bracketed paste in Ex modev8.2.4218Bram Moolenaar
Problem: Illegal memory access with bracketed paste in Ex mode. Solution: Reserve space for the trailing NUL.
2022-01-24patch 8.2.4203: entering a character with CTRL-V may include modifiersv8.2.4203zeertzjq
Problem: Entering a character with CTRL-V may include modifiers. Solution: Reset "mod_mask" when entering a character with digits after CTRL-V. (closes #9610)
2022-01-15patch 8.2.4099: Vim9: cannot use Vim9 syntax in mappingv8.2.4099Bram Moolenaar
Problem: Vim9: cannot use Vim9 syntax in mapping. Solution: Add <ScriptCmd> to use the script context for a command.
2022-01-08patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle
Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
2022-01-04patch 8.2.4001: insert complete code uses global variablesv8.2.4001Yegappan Lakshmanan
Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470)
2022-01-01patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-29patch 8.2.3935: CTRL-U in Insert mode does not fix the indentv8.2.3935Bram Moolenaar
Problem: CTRL-U in Insert mode does not fix the indent. Solution: Fix the indent when 'cindent' is set.
2021-12-27patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle
Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
2021-12-16patch 8.2.3828: when opening a terminal from a timer first typed char is lostv8.2.3828Bram Moolenaar
Problem: when opening a terminal from a timer the first typed character is lost. (Virginia Senioria) Solution: When opening a terminal while waiting for a character put K_IGNORE in the input buffer.
2021-12-12patch 8.2.3787: no proper formatting of a C line comment after a statementv8.2.3787Bram Moolenaar
Problem: No proper formatting of a C line comment after a statement. Solution: Find the start of the line comment, insert the comment leader and indent the comment properly.
2021-12-09patch 8.2.3764: cannot see any text when window was made zero linesv8.2.3764Bram Moolenaar
Problem: Cannot see any text when window was made zero lines or zero columns. Solution: Ensure there is at least one line and column. (fixes #9307)
2021-10-16patch 8.2.3517: TextChanged does not trigger after TextChangedIv8.2.3517Christian Brabandt
Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
2021-10-03patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U"v8.2.3467Bram Moolenaar
Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono) Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI. (closes #8937)
2021-09-16patch 8.2.3444: concealed text not revealed when leaving insert modev8.2.3444Bram Moolenaar
Problem: concealed text not revealed when leaving insert mode. (Michael Soyka) Solution: Check if concealing changed when leaving insert mode. (closes #8880)
2021-09-12patch 8.2.3430: no generic way to trigger an autocommand on mode changev8.2.3430=?UTF-8?q?Magnus=20Gro=C3=9F?=
Problem: No generic way to trigger an autocommand on mode change. Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856)
2021-08-09patch 8.2.3320: some local functions are not staticv8.2.3320Yegappan Lakshmanan
Problem: Some local functions are not static. Solution: Add "static". Move snprintf() related code to strings.c. (Yegappan Lakshmanan, closes #8734)
2021-07-26patch 8.2.3227: 'virtualedit' can only be set globallyv8.2.3227Gary Johnson
Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638)
2021-07-26patch 8.2.3226: new digraph functions use old naming schemev8.2.3226h-east
Problem: New digraph functions use old naming scheme. Solution: Use the digraph_ prefix. (Hirohito Higashi, closes #8580)
2021-07-21patch 8.2.3197: error messages are spread outv8.2.3197Bram Moolenaar
Problem: Error messages are spread out. Solution: Move a few more error messages to errors.h.
2021-07-20patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar
Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
2021-06-29patch 8.2.3074: popup_atcursor() uses wrong position with concealingv8.2.3074Bram Moolenaar
Problem: popup_atcursor() uses wrong position with concealing. Solution: Keep w_wcol in conceal_check_cursor_line(). (closes #8476)
2021-01-28patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnterv8.2.2418Bram Moolenaar
Problem: Color not changed if ModeMsg highlight is set in InsertEnter autocmd event. (Paul Swanson) Solution: Call highlight_changed() after triggering InsertEnter. (closes #7751)
2021-01-17patch 8.2.2374: accessing uninitialized memory in test_undov8.2.2374Bram Moolenaar
Problem: Accessing uninitialized memory in test_undo. Solution: Do not look in typebuf.tb_buf if it is empty. (Dominique Pellé, closes #7697)
2020-12-03patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode characterv8.2.2084Bram Moolenaar
Problem: CTRL-V U doesn't work to enter a Unicode character when modifyOtherKeys is effective. (Ken Takata) Solution: Add a flag to get_literal() for the shift key. (closes #7413)
2020-11-14patch 8.2.1988: still in Insert mode when opening terminal popupv8.2.1988Bram Moolenaar
Problem: Still in Insert mode when opening terminal popup with a <Cmd> mapping in Insert mode. Solution: Exit Insert mode. (closes #7295)