summaryrefslogtreecommitdiff
path: root/src/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar2022-01-311-18/+4
| | | | | Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-3/+3
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4218: illegal memory access with bracketed paste in Ex modev8.2.4218Bram Moolenaar2022-01-251-1/+2
| | | | | Problem: Illegal memory access with bracketed paste in Ex mode. Solution: Reserve space for the trailing NUL.
* patch 8.2.4203: entering a character with CTRL-V may include modifiersv8.2.4203zeertzjq2022-01-241-0/+9
| | | | | | 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)
* patch 8.2.4099: Vim9: cannot use Vim9 syntax in mappingv8.2.4099Bram Moolenaar2022-01-151-2/+3
| | | | | Problem: Vim9: cannot use Vim9 syntax in mapping. Solution: Add <ScriptCmd> to use the script context for a command.
* patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle2022-01-081-0/+2
| | | | | Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
* patch 8.2.4001: insert complete code uses global variablesv8.2.4001Yegappan Lakshmanan2022-01-041-2/+2
| | | | | | Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470)
* patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3935: CTRL-U in Insert mode does not fix the indentv8.2.3935Bram Moolenaar2021-12-291-0/+15
| | | | | Problem: CTRL-U in Insert mode does not fix the indent. Solution: Fix the indent when 'cindent' is set.
* patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle2021-12-271-2/+2
| | | | | Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
* patch 8.2.3828: when opening a terminal from a timer first typed char is lostv8.2.3828Bram Moolenaar2021-12-161-2/+7
| | | | | | | 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.
* patch 8.2.3787: no proper formatting of a C line comment after a statementv8.2.3787Bram Moolenaar2021-12-121-1/+2
| | | | | | 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.
* patch 8.2.3764: cannot see any text when window was made zero linesv8.2.3764Bram Moolenaar2021-12-091-0/+5
| | | | | | 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)
* patch 8.2.3517: TextChanged does not trigger after TextChangedIv8.2.3517Christian Brabandt2021-10-161-6/+6
| | | | | | Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
* patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U"v8.2.3467Bram Moolenaar2021-10-031-0/+3
| | | | | | Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono) Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI. (closes #8937)
* patch 8.2.3444: concealed text not revealed when leaving insert modev8.2.3444Bram Moolenaar2021-09-161-0/+10
| | | | | | | Problem: concealed text not revealed when leaving insert mode. (Michael Soyka) Solution: Check if concealing changed when leaving insert mode. (closes #8880)
* patch 8.2.3430: no generic way to trigger an autocommand on mode changev8.2.3430=?UTF-8?q?Magnus=20Gro=C3=9F?=2021-09-121-0/+3
| | | | | Problem: No generic way to trigger an autocommand on mode change. Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856)
* patch 8.2.3320: some local functions are not staticv8.2.3320Yegappan Lakshmanan2021-08-091-1/+1
| | | | | | Problem: Some local functions are not static. Solution: Add "static". Move snprintf() related code to strings.c. (Yegappan Lakshmanan, closes #8734)
* patch 8.2.3227: 'virtualedit' can only be set globallyv8.2.3227Gary Johnson2021-07-261-3/+3
| | | | | Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638)
* patch 8.2.3226: new digraph functions use old naming schemev8.2.3226h-east2021-07-261-1/+1
| | | | | Problem: New digraph functions use old naming scheme. Solution: Use the digraph_ prefix. (Hirohito Higashi, closes #8580)
* patch 8.2.3197: error messages are spread outv8.2.3197Bram Moolenaar2021-07-211-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move a few more error messages to errors.h.
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.3074: popup_atcursor() uses wrong position with concealingv8.2.3074Bram Moolenaar2021-06-291-3/+12
| | | | | Problem: popup_atcursor() uses wrong position with concealing. Solution: Keep w_wcol in conceal_check_cursor_line(). (closes #8476)
* patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnterv8.2.2418Bram Moolenaar2021-01-281-0/+4
| | | | | | | Problem: Color not changed if ModeMsg highlight is set in InsertEnter autocmd event. (Paul Swanson) Solution: Call highlight_changed() after triggering InsertEnter. (closes #7751)
* patch 8.2.2374: accessing uninitialized memory in test_undov8.2.2374Bram Moolenaar2021-01-171-1/+1
| | | | | | Problem: Accessing uninitialized memory in test_undo. Solution: Do not look in typebuf.tb_buf if it is empty. (Dominique Pellé, closes #7697)
* patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode characterv8.2.2084Bram Moolenaar2020-12-031-10/+10
| | | | | | 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)
* patch 8.2.1988: still in Insert mode when opening terminal popupv8.2.1988Bram Moolenaar2020-11-141-0/+5
| | | | | | Problem: Still in Insert mode when opening terminal popup with a <Cmd> mapping in Insert mode. Solution: Exit Insert mode. (closes #7295)
* patch 8.2.1978: making a mapping work in all modes is complicatedv8.2.1978Bram Moolenaar2020-11-121-0/+4
| | | | | | Problem: Making a mapping work in all modes is complicated. Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282, closes 4784, based on patch by Bjorn Linse)
* patch 8.2.1976: cannot backspace in prompt buffer after using cursor-leftv8.2.1976Bram Moolenaar2020-11-111-2/+5
| | | | | | Problem: Cannot backspace in prompt buffer after using cursor-left. (Maxim Kim) Solution: Ignore "arrow_used" in a prompt buffer. (closes #7281)
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-1/+1
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1874: can't do something just before leaving Insert modev8.2.1874Bram Moolenaar2020-10-211-0/+3
| | | | | Problem: Can't do something just before leaving Insert mode. Solution: Add the InsertLeavePre autocommand event. (closes #7177)
* patch 8.2.1762: when a timer uses :stopinsert completion isn't stoppedv8.2.1762Bram Moolenaar2020-09-271-0/+3
| | | | | | Problem: When a timer uses :stopinsert Insert mode completion isn't stopped. (Stanley Chan) Solution: Call ins_compl_prep(ESC).
* patch 8.2.1637: Vim9: :put ={expr} does not work inside :def functionv8.2.1637Bram Moolenaar2020-09-081-2/+2
| | | | | Problem: Vim9: :put ={expr} does not work inside :def function. Solution: Add ISN_PUT. (closes #6397)
* patch 8.2.1597: the channel source file is too bigv8.2.1597Bram Moolenaar2020-09-051-75/+9
| | | | | Problem: The channel source file is too big. Solution: Move job related code to a new source file.
* patch 8.2.1595: cannot easily see what Vim sends to the terminalv8.2.1595Bram Moolenaar2020-09-051-0/+6
| | | | | | Problem: Cannot easily see what Vim sends to the terminal. Solution: Write output to the channel log if it contains terminal control sequences. Avoid warnings for tputs() argument.
* patch 8.2.1588: cannot read back the prompt of a prompt bufferv8.2.1588Bram Moolenaar2020-09-041-3/+13
| | | | | Problem: Cannot read back the prompt of a prompt buffer. Solution: Add prompt_getprompt(). (Ben Jackson, closes #6851)
* patch 8.2.0916: mapping with partly modifyOtherKeys code does not workv8.2.0916Bram Moolenaar2020-06-061-1/+1
| | | | | | Problem: Mapping with partly modifyOtherKeys code does not work. Solution: If there is no mapping with a separate modifier include the modifier in the key and then try mapping again. (closes #6200)
* patch 8.2.0674: some source files are too bigv8.2.0674Bram Moolenaar2020-05-011-567/+0
| | | | | | Problem: Some source files are too big. Solution: Move text formatting functions to a new file. (Yegappan Lakshmanan, closes #6021)
* patch 8.2.0670: cannot change window when evaluating 'completefunc'v8.2.0670Bram Moolenaar2020-04-301-4/+5
| | | | | | Problem: Cannot change window when evaluating 'completefunc'. Solution: Make a difference between not changing text or buffers and also not changing window.
* patch 8.2.0649: undo problem whn an InsertLeave autocommand resets undov8.2.0649Bram Moolenaar2020-04-271-1/+2
| | | | | | Problem: Undo problem whn an InsertLeave autocommand resets undo. (Kutsan Kaplan) Solution: Do not create a new undo block when leaving Insert mode.
* patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'v8.2.0614Bram Moolenaar2020-04-211-8/+2
| | | | | | Problem: Get ml_get error when deleting a line in 'completefunc'. (Yegappan Lakshmanan) Solution: Lock the text while evaluating 'completefunc'.
* patch 8.2.0590: no 'backspace' value allows ignoring the insertion pointv8.2.0590Bram Moolenaar2020-04-171-2/+4
| | | | | Problem: No 'backspace' value allows ignoring the insertion point. Solution: Add the "nostop" and 3 values. (Christian Brabandt, closes #5940)
* patch 8.2.0370: the typebuf_was_filled flag is sometimes not resetv8.2.0370Bram Moolenaar2020-03-111-0/+4
| | | | | | | Problem: The typebuf_was_filled flag is sometimes not reset, which may cause a hang. Solution: Make sure typebuf_was_filled is reset when the typeahead buffer is empty.
* patch 8.2.0135: bracketed paste can still cause invalid memory accessv8.2.0135Bram Moolenaar2020-01-201-1/+1
| | | | | | Problem: Bracketed paste can still cause invalid memory access. (Dominique Pelle) Solution: Check for NULL pointer.
* patch 8.2.0133: invalid memory access with search commandv8.2.0133Bram Moolenaar2020-01-201-2/+2
| | | | | | Problem: Invalid memory access with search command. Solution: When :normal runs out of characters in bracketed paste mode break out of the loop.(closes #5511)
* patch 8.2.0109: corrupted text properties when expanding spacesv8.2.0109Bram Moolenaar2020-01-091-2/+18
| | | | | Problem: Corrupted text properties when expanding spaces. Solution: Reallocate the line. (Nobuhiro Takasaki, closes #5457)
* patch 8.2.0083: text properties wrong when tabs and spaces are exchangedv8.2.0083Bram Moolenaar2020-01-031-4/+10
| | | | | | Problem: Text properties wrong when tabs and spaces are exchanged. Solution: Take text properties into account. (Nobuhiro Takasaki, closes #5427)
* patch 8.1.2378: using old C style commentsv8.1.2378Bram Moolenaar2019-12-011-601/+598
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-6/+6
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeysv8.1.2350Bram Moolenaar2019-11-261-0/+60
| | | | | | | Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys. Solution: Convert the Escape sequence back to key as if modifyOtherKeys is not set, and use CTRL-SHIFT-V to get the Escape sequence itself. (closes #5254)