summaryrefslogtreecommitdiff
path: root/src/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1809: various typosv8.0.1809Bram Moolenaar2018-05-101-1/+1
| | | | | Problem: Various typos. Solution: Correct the mistakes, change "cursur" to "cursor". (closes #2887)
* patch 8.0.1806: InsertCharPre causes problems for autocompletev8.0.1806Bram Moolenaar2018-05-081-1/+4
| | | | | | Problem: InsertCharPre causes problems for autocomplete. (Lifepillar) Solution: Check for InsertCharPre before calling vpeekc(). (Christian Brabandt, closes #2876)
* patch 8.0.1766: expanding abbreviation doesn't workv8.0.1766Bram Moolenaar2018-04-261-2/+2
| | | | | | Problem: Expanding abbreviation doesn't work. (Tooth Pik) Solution: Return OK instead of FALSE and FAIL instead of TRUE. (Christian Brabandt)
* patch 8.0.1758: open_line() returns TRUE/FALSE for success/failurev8.0.1758Bram Moolenaar2018-04-241-3/+3
| | | | | Problem: open_line() returns TRUE/FALSE for success/failure. Solution: Return OK or FAIL.
* patch 8.0.1731: characters deleted on completionv8.0.1731Bram Moolenaar2018-04-171-1/+13
| | | | | | Problem: Characters deleted on completion. (Adrià Farrés) Solution: Also check the last item for the ORIGINAL_TEXT flag. (Christian Brabandt, closes #1645)
* patch 8.0.1575: crash when using virtual replacev8.0.1575Bram Moolenaar2018-03-061-0/+10
| | | | | Problem: Crash when using virtual replace. Solution: Adjust orig_line_count. Add more tests. (Christian Brabandt)
* patch 8.0.1566: too many #ifdefsv8.0.1566Bram Moolenaar2018-03-041-4/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_SCROLLBIND and FEAT_CURSORBIND.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-63/+28
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-11/+11
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1494: no autocmd triggered in Insert mode with visible popup menuv8.0.1494Bram Moolenaar2018-02-101-5/+16
| | | | | | | | Problem: No autocmd triggered in Insert mode with visible popup menu. Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt, closes #2372, closes #1691) Fix that the TextChanged autocommands are not always triggered when sourcing a script.
* patch 8.0.1493: completion items cannot be annotatedv8.0.1493Bram Moolenaar2018-02-101-0/+4
| | | | | | Problem: Completion items cannot be annotated. Solution: Add a "user_data" entry to the completion item. (Ben Jackson, coses #2608, closes #2508)
* patch 8.0.1482: using feedkeys() does not work to test completionv8.0.1482Bram Moolenaar2018-02-091-9/+10
| | | | | | | Problem: Using feedkeys() does not work to test Insert mode completion. (Lifepillar) Solution: Do not check for typed keys when executing :normal or feedkeys(). Fix thesaurus completion not working when 'complete' is empty.
* patch 8.0.1481: clearing a pointer takes two linesv8.0.1481Bram Moolenaar2018-02-091-22/+11
| | | | | Problem: Clearing a pointer takes two lines. Solution: Add vim_clear() to free and clear the pointer.
* patch 8.0.1479: insert mode completion state is confusingv8.0.1479Bram Moolenaar2018-02-091-56/+85
| | | | | Problem: Insert mode completion state is confusing. Solution: Move ctrl_x_mode into edit.c. Add CTRL_X_NORMAL for zero.
* patch 8.0.1449: slow redrawing with DirectXv8.0.1449Bram Moolenaar2018-01-311-7/+5
| | | | | | Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
* patch 8.0.1356: using simalt in a GUIEnter autocommand inserts charactersv8.0.1356Bram Moolenaar2017-11-281-2/+2
| | | | | | Problem: Using simalt in a GUIEnter autocommand inserts strange characters. (Chih-Long Chang) Solution: Ignore K_NOP in Insert mode. (closes #2379)
* patch 8.0.1338: USE_IM_CONTROL is confusing and incompletev8.0.1338Bram Moolenaar2017-11-251-6/+6
| | | | | Problem: USE_IM_CONTROL is confusing and incomplete. Solution: Just use FEAT_MBYTE. Call 'imactivatefunc' also without GUI.
* patch 8.0.1309: cannot use 'balloonexpr' in a terminalv8.0.1309Bram Moolenaar2017-11-181-0/+1
| | | | | | Problem: Cannot use 'balloonexpr' in a terminal. Solution: Add 'balloonevalterm' and add code to handle mouse movements in a terminal. Initial implementation for Unix with GUI.
* patch 8.0.1236: Mac features are confusingv8.0.1236Bram Moolenaar2017-10-281-2/+2
| | | | | | Problem: Mac features are confusing. Solution: Make feature names more consistent, add "osxdarwin". Rename feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
* patch 8.0.1215: newer gcc warns for implicit fallthroughv8.0.1215Bram Moolenaar2017-10-241-1/+4
| | | | | Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
* patch 8.0.1154: 'indentkeys' does not work properlyv8.0.1154Bram Moolenaar2017-09-261-1/+1
| | | | | Problem: 'indentkeys' does not work properly. (Gary Johnson) Solution: Get the cursor line again. (Christian Brabandt, closes #2151)
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-6/+6
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1135: W_WINCOL() is always the samev8.0.1135Bram Moolenaar2017-09-221-1/+1
| | | | | Problem: W_WINCOL() is always the same. Solution: Expand the macro.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-29/+3
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.1041: bogus characters when indenting during visual-block appendv8.0.1041Bram Moolenaar2017-09-021-4/+3
| | | | | | Problem: Bogus characters appear when indenting kicks in while doing a visual-block append. Solution: Recompute when indenting is done. (Christian Brabandt)
* patch 8.0.1026: GTK on-the-spot input has problemsv8.0.1026Bram Moolenaar2017-08-301-1/+1
| | | | | | Problem: GTK on-the-spot input has problems. (Gerd Wachsmuth) Solution: Support over-the-spot. (Yukihiro Nakadaira, Ketn Takata, closes #1215)
* patch 8.0.0948: crash if timer closes window while dragging status linev8.0.0948Bram Moolenaar2017-08-161-2/+5
| | | | | | Problem: Crash if timer closes window while dragging status line. Solution: Check if the window still exists. (Yasuhiro Matsumoto, closes #1979)
* patch 8.0.0691: compiler warning without the linebreak featurev8.0.0691Bram Moolenaar2017-06-291-0/+2
| | | | | Problem: Compiler warning without the linebreak feature. Solution: Add #ifdef. (John Marriott)
* patch 8.0.0669: CTRL-N at start of the buffer does not work correctlyv8.0.0669Bram Moolenaar2017-06-241-3/+11
| | | | | | Problem: In Insert mode, CTRL-N at start of the buffer does not work correctly. (zuloloxi) Solution: Wrap around the start of the buffer. (Christian Brabandt)
* patch 8.0.0643: when a pattern search is slow Vim becomes unusablev8.0.0643Bram Moolenaar2017-06-171-1/+1
| | | | | | | | Problem: When 'hlsearch' is set and matching with the last search pattern is very slow, Vim becomes unusable. Cannot quit search by pressing CTRL-C. Solution: When the search times out set a flag and don't try again. Check for timeout and CTRL-C in NFA loop that adds states.
* patch 8.0.0596: crash when complete() called after complete_add()v8.0.0596Bram Moolenaar2017-05-011-10/+19
| | | | | | | Problem: Crash when complete() is called after complete_add() in 'completefunc'. (Lifepillar) Solution: Bail out if compl_pattern is NULL. (closes #1668) Also avoid using freed memory.
* patch 8.0.0544: cppcheck warningsv8.0.0544Bram Moolenaar2017-04-071-1/+1
| | | | | | Problem: Cppcheck warnings. Solution: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique Pelle)
* patch 8.0.0541: compiler warning on MS-Windowsv8.0.0541Bram Moolenaar2017-04-031-1/+1
| | | | | Problem: Compiler warning on MS-Windows. Solution: Add a type cast. (Mike Williams)
* patch 8.0.0533: abbreviation doesn't work after backspacing newlinev8.0.0533Bram Moolenaar2017-04-011-2/+2
| | | | | Problem: Abbreviation doesn't work after backspacing newline. (Hkonrk) Solution: Set the insert start column. (closes #1609)
* patch 8.0.0530: buffer overflow when 'columns' is very bigv8.0.0530Bram Moolenaar2017-03-311-10/+24
| | | | | | Problem: Buffer overflow when 'columns' is very big. (Nikolai Pavlov) Solution: Correctly compute where to truncate. Fix translation. (closes #1600)
* patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar2017-03-161-6/+6
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-16/+16
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar2017-03-121-10/+10
| | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
* patch 8.0.0448: some macros are in lower casev8.0.0448Bram Moolenaar2017-03-121-6/+6
| | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
* patch 8.0.0440: not enough test coverage in Insert modev8.0.0440Bram Moolenaar2017-03-091-1/+4
| | | | | | Problem: Not enough test coverage in Insert mode. Solution: Add lots of tests. Add test_override(). (Christian Brabandt, closes #1521)
* patch 8.0.0425: build errors when building without foldingv8.0.0425Bram Moolenaar2017-03-051-2/+6
| | | | | Problem: Build errors when building without folding. Solution: Add #ifdefs. (John Marriott)
* patch 8.0.0390: when the window scrolls the popup menu may be garbledv8.0.0390Bram Moolenaar2017-03-011-16/+19
| | | | | | Problem: When the window scrolls horizontally when the popup menu is displayed part of it may not be cleared. (Neovim issue #6184) Solution: Remove the menu when the windows scrolled. (closes #1524)
* patch 8.0.0379: CTRL-Z and mouse click use CTRL-O unnecessaryv8.0.0379Bram Moolenaar2017-02-261-2/+4
| | | | | Problem: CTRL-Z and mouse click use CTRL-O unnecessary. Solution: Remove stuffing CTRL-O. (James McCoy, closes #1453)
* patch 8.0.0365: might free a dict item that wasn't allocatedv8.0.0365Bram Moolenaar2017-02-251-2/+2
| | | | | | Problem: Might free a dict item that wasn't allocated. Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for b:changedtick.
* patch 8.0.0358: invalid memory access in C-indent codev8.0.0358Bram Moolenaar2017-02-231-1/+2
| | | | | Problem: Invalid memory access in C-indent code. Solution: Don't go over end of empty line. (Dominique Pelle, closes #1492)
* patch 8.0.0347: when using completion comment leader wont workv8.0.0347Bram Moolenaar2017-02-211-0/+3
| | | | | | Problem: When using CTRL-X CTRL-U inside a comment, the use of the comment leader may not work. (Klement) Solution: Save and restore did_ai. (Christian Brabandt, closes #1494)
* patch 8.0.0341: undo does not work properly when using completionv8.0.0341Bram Moolenaar2017-02-191-0/+4
| | | | | | Problem: When using complete() and typing a character undo is saved after the character was inserted. (Shougo) Solution: Save for undo before inserting the character.
* patch 8.0.0334: can't access b:changedtick from a dict referencev8.0.0334Bram Moolenaar2017-02-171-2/+2
| | | | | | Problem: Can't access b:changedtick from a dict reference. Solution: Make changedtick a member of the b: dict. (inspired by neovim #6112)
* patch 8.0.0319: insert mode completion does not respect 'backspace'v8.0.0319Bram Moolenaar2017-02-091-2/+5
| | | | | | Problem: Insert mode completion does not respect "start" in 'backspace'. Solution: Check whether backspace can go before where insert started. (Hirohito Higashi)
* patch 8.0.0262: Farsi support is barely testedv8.0.0262Bram Moolenaar2017-01-291-4/+3
| | | | | Problem: Farsi support is barely tested. Solution: Add more tests for Farsi. Clean up the code.