summaryrefslogtreecommitdiff
path: root/src/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* patch 8.1.2346: CTRL-R CTRL-R doesn't work with modifyOtherKeysv8.1.2346Bram Moolenaar2019-11-261-0/+4
| | | | | | Problem: CTRL-R CTRL-R doesn't work with modifyOtherKeys. Solution: Allow key codes when fetching argument for CTRL-R. (closes #5266) Also fix CTRL-G in Insert mode.
* patch 8.1.2327: cannot build with Hangul inputv8.1.2327Bram Moolenaar2019-11-211-10/+0
| | | | | Problem: Cannot build with Hangul input. Solution: Remove Hangul input support.
* patch 8.1.2281: 'showbreak' cannot be set for one windowv8.1.2281Bram Moolenaar2019-11-091-1/+1
| | | | | Problem: 'showbreak' cannot be set for one window. Solution: Make 'showbreak' global-local.
* patch 8.1.2261: with modifyOtherKeys set 'noesckeys' doesn't workv8.1.2261Bram Moolenaar2019-11-061-5/+16
| | | | | | Problem: With modifyOtherKeys set 'noesckeys' doesn't work. (James McCoy) Solution: Disable modifyOtherKeys while in Insert mode when 'noesckeys' is set. (closes #5180)
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-8/+1
| | | | | | Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
* patch 8.1.2127: the indent.c file is a bit bigv8.1.2127Bram Moolenaar2019-10-091-340/+1
| | | | | | | Problem: The indent.c file is a bit big. Solution: Move C-indent code a a new cindent.c file. Move other indent-related code to indent.c. (Yegappan Lakshmanan, closes #5031)
* patch 8.1.2096: too many #ifdefsv8.1.2096Bram Moolenaar2019-09-281-49/+16
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
* patch 8.1.2062: the mouse code is spread outv8.1.2062Bram Moolenaar2019-09-211-139/+8
| | | | | | Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
* patch 8.1.2044: no easy way to process postponed workv8.1.2044Bram Moolenaar2019-09-151-0/+5
| | | | | Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
* patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar2019-08-211-70/+11
| | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
* patch 8.1.1884: cannot use mouse scroll wheel in popup in Insert modev8.1.1884Bram Moolenaar2019-08-181-1/+5
| | | | | | | Problem: Cannot use mouse scroll wheel in popup in Insert mode. Mouse clicks in popup close the popup menu. Solution: Check if the mouse is in a popup window. Do not let mouse events close the popup menu. (closes #4544)
* patch 8.1.1520: popup windows are ignored when dealing with mouse positionv8.1.1520Bram Moolenaar2019-06-121-1/+1
| | | | | | Problem: Popup windows are ignored when dealing with mouse position Solution: Find the mouse position inside a popup window. Allow for modeless selection.
* patch 8.1.1453: popup window "moved" property not implemented yetv8.1.1453Bram Moolenaar2019-06-021-5/+9
| | | | | Problem: Popup window "moved" property not implemented yet. Solution: Implement it.
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-1/+1
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-1/+1
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1359: text property wrong after :substitute with backslashv8.1.1359Bram Moolenaar2019-05-191-1/+1
| | | | | | Problem: Text property wrong after :substitute with backslash. Solution: Adjust text property columns when removing backslashes. (closes #4397)
* patch 8.1.1351: text property wrong after :substitutev8.1.1351Bram Moolenaar2019-05-191-1/+1
| | | | | Problem: Text property wrong after :substitute. Solution: Save for undo before changing any text properties.
* patch 8.1.1194: typos and small problems in source filesv8.1.1194Bram Moolenaar2019-04-211-4/+2
| | | | | Problem: Typos and small problems in source files. Solution: Small fixes.
* patch 8.1.1189: mode is not cleared when leaving Insert modev8.1.1189Bram Moolenaar2019-04-201-1/+1
| | | | | Problem: Mode is not cleared when leaving Insert mode. Solution: Clear the mode when got_int is set. (Ozaki Kiichi, closes #4270)
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-2/+1
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1076: file for Insert mode is much too bigv8.1.1076Bram Moolenaar2019-03-301-3966/+52
| | | | | | Problem: File for Insert mode is much too big. Solution: Split off the code for Insert completion. (Yegappan Lakshmanan, closes #4044)
* patch 8.1.1068: cannot get all the information about current completionv8.1.1068Bram Moolenaar2019-03-291-6/+132
| | | | | Problem: Cannot get all the information about current completion. Solution: Add complete_info(). (Shougo, Hirohito Higashi, closes #4106)
* patch 8.1.1055: CTRL-G U in Insert mode doesn't work for shift-Leftv8.1.1055Bram Moolenaar2019-03-261-16/+25
| | | | | | | Problem: CTRL-G U in Insert mode doesn't work to avoid splitting the undo sequence for shift-left and shift-right. Solution: Also check dont_sync_undo for shifted cursor keys. (Christian Brabandt)
* patch 8.1.1032: warnings from clang static analyzerv8.1.1032Bram Moolenaar2019-03-211-3/+3
| | | | | Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-3/+3
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0932: Farsi support is outdated and unusedv8.1.0932Bram Moolenaar2019-02-161-48/+3
| | | | | Problem: Farsi support is outdated and unused. Solution: Delete the Farsi support.
* patch 8.1.0876: completion match not displayed when popup menu is not shownv8.1.0876Bram Moolenaar2019-02-051-3/+7
| | | | | | Problem: Completion match not displayed when popup menu is not shown. Solution: Call update_screen() when not displaying the popup menu to show the inserted match. (Ken Takata, Hirohito Higashi)
* patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'v8.1.0864Bram Moolenaar2019-01-311-1/+1
| | | | | | | Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
* patch 8.1.0860: debug lines left in the codev8.1.0860Bram Moolenaar2019-01-311-2/+0
| | | | | Problem: Debug lines left in the code. Solution: Delete the lines.
* patch 8.1.0857: indent functionality is not separatedv8.1.0857Bram Moolenaar2019-01-311-329/+2
| | | | | | Problem: Ignore functionality is not separated. Solution: Move indent functionality into a new file. (Yegappan Lakshmanan, closes #3886)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-45/+10
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0822: peeking and flushing output slows down executionv8.1.0822Bram Moolenaar2019-01-251-1/+1
| | | | | | Problem: Peeking and flushing output slows down execution. Solution: Do not update the mode message when global_busy is set. Do not flush when only peeking for a character. (Ken Takata)
* patch 8.1.0805: too many #ifdefsv8.1.0805Bram Moolenaar2019-01-241-184/+17
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
* patch 8.1.0792: bad display if opening cmdline window from Insert completionv8.1.0792Bram Moolenaar2019-01-221-1/+6
| | | | | | | Problem: Popup menu is displayed on top of the cmdline window if it is opened from Insert completion. (Bjorn Linse) Solution: Remove the popup menu. Restore the cursor position. (closes #3838)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-8/+8
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0768: updating completions may cause the popup menu to flickerv8.1.0768Bram Moolenaar2019-01-171-9/+11
| | | | | | Problem: Updating completions may cause the popup menu to flicker. Solution: Avoid updating the text below the popup menu before drawing the popup menu.