summaryrefslogtreecommitdiff
path: root/src/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-11/+11
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0728: cannot avoid breaking after a single space.v8.1.0728Bram Moolenaar2019-01-111-1/+14
| | | | | Problem: Cannot avoid breaking after a single space. Solution: Add the 'p' flag to 'formatoptions'. (Tom Ryder)
* patch 8.1.0726: redrawing specifically for conceal featurev8.1.0726Bram Moolenaar2019-01-111-9/+10
| | | | | Problem: Redrawing specifically for conceal feature. Solution: Use generic redrawing methods.
* patch 8.1.0716: get warning message when 'completefunc' returns nothingv8.1.0716Bram Moolenaar2019-01-111-11/+20
| | | | | | Problem: Get warning message when 'completefunc' returns nothing. Solution: Allow for returning v:none to suppress the warning message. (Yasuhiro Matsumoto, closes #3789)
* patch 8.1.0708: third argument for redrawWinline() is always FALSEv8.1.0708Bram Moolenaar2019-01-091-3/+3
| | | | | Problem: Third argument for redrawWinline() is always FALSE. Solution: Drop the argument. (neovim #9479)
* patch 8.1.0699: compiler warning for uninitialized variablev8.1.0699Bram Moolenaar2019-01-061-1/+1
| | | | | Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Add a dummy init.
* patch 8.1.0696: when test_edit fails 'insertmode' may not be resetv8.1.0696Bram Moolenaar2019-01-061-0/+11
| | | | | | | | Problem: When test_edit fails 'insertmode' may not be reset and the next test may get stuck. (James McCoy) Solution: Always reset 'insertmode' after executing a test. Avoid that an InsertCharPre autocommand or a 'complete' function can change the state. (closes #3768)
* patch 8.1.0682: text properties not adjusted when backspacing replaced textv8.1.0682Bram Moolenaar2019-01-021-1/+23
| | | | | Problem: Text properties are not adjusted when backspacing replaced text. Solution: Keep text properties on text restored in replace mode.
* patch 8.1.0681: text properties as not adjusted for deleted textv8.1.0681Bram Moolenaar2019-01-021-1/+0
| | | | | Problem: Text properties as not adjusted for deleted text. Solution: Adjust text properties when backspacing to delete text.
* patch 8.1.0629: "gn" selects the wrong text with a multi-line matchv8.1.0629Bram Moolenaar2018-12-231-1/+1
| | | | | Problem: "gn" selects the wrong text with a multi-line match. Solution: Get the end position from searchit() directly. (closes #3695)
* patch 8.1.0615: get_tv function names are not consistentv8.1.0615Bram Moolenaar2018-12-211-1/+1
| | | | | Problem: Get_tv function names are not consistent. Solution: Rename to tv_get.
* patch 8.1.0583: using illogical name for get_dict_number()/get_dict_string()v8.1.0583Bram Moolenaar2018-12-141-12/+12
| | | | | Problem: Using illogical name for get_dict_number()/get_dict_string(). Solution: Rename to start with dict_.
* patch 8.1.0579: cannot attach properties to textv8.1.0579Bram Moolenaar2018-12-131-0/+3
| | | | | Problem: Cannot attach properties to text. Solution: First part of adding text properties.
* patch 8.1.0542: shiftwidth() does not take 'vartabstop' into accountv8.1.0542Bram Moolenaar2018-11-221-2/+6
| | | | | | | Problem: shiftwidth() does not take 'vartabstop' into account. Solution: Use the cursor position or a position explicitly passed. Also make >> and << work better with 'vartabstop'. (Christian Brabandt)
* patch 8.1.0504: when CTRL-C is mapped it triggers InsertLeavev8.1.0504Bram Moolenaar2018-11-021-2/+5
| | | | | Problem: When CTRL-C is mapped it triggers InsertLeave. Solution: Make CTRL-C behave the same way when typed or used in a mapping.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-15/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0372: screen updating slow when 'cursorline' is setv8.1.0372Bram Moolenaar2018-09-121-3/+3
| | | | | Problem: Screen updating slow when 'cursorline' is set. Solution: Only redraw the old and new cursor line, not all lines.
* patch 8.1.0256: using setline() in TextChangedI splits undov8.1.0256Bram Moolenaar2018-08-081-21/+36
| | | | | Problem: Using setline() in TextChangedI splits undo. Solution: Use another solution for undo not working properly.
* patch 8.1.0246: build failure without the +eval featurev8.1.0246Bram Moolenaar2018-08-071-0/+4
| | | | | Problem: Build failure without the +eval feature. Solution: Add #ifdef
* patch 8.1.0245: calling setline() in TextChangedI autocmd breaks undov8.1.0245Bram Moolenaar2018-08-071-0/+8
| | | | | | Problem: Calling setline() in TextChangedI autocmd breaks undo. (Jason Felice) Solution: Don't save lines for undo when already saved. (closes #3291)
* patch 8.1.0242: Insert mode completion may use an invalid buffer pointerv8.1.0242Bram Moolenaar2018-08-071-1/+6
| | | | | Problem: Insert mode completion may use an invalid buffer pointer. Solution: Check for ins_buf to be valid. (closes #3290)