summaryrefslogtreecommitdiff
path: root/src/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.0043v8.0.0043Bram Moolenaar2016-10-181-5/+14
| | | | | | | Problem: When using Insert mode completion with 'completeopt' containing "noinsert" with CTRL-N the change is not saved for undo. (Tommy Allen) Solution: Call stop_arrow() before inserting for any key.
* patch 8.0.0042v8.0.0042Bram Moolenaar2016-10-171-2/+3
| | | | | | Problem: When using Insert mode completion with 'completeopt' containing "noinsert" change is not saved for undo. (Tommy Allen) Solution: Call stop_arrow() before inserting for pressing Enter.
* patch 8.0.0041v8.0.0041Bram Moolenaar2016-10-161-4/+2
| | | | | | Problem: When using Insert mode completion but not actually inserting anything an undo item is still created. (Tommy Allen) Solution: Do not call stop_arrow() when not inserting anything.
* patch 8.0.0035v8.0.0035Bram Moolenaar2016-10-151-16/+22
| | | | | | Problem: Order of matches for 'omnifunc' is messed up. (Danny Su) Solution: Do not set compl_curr_match when called from complete_check(). (closes #1168)
* patch 7.4.2331v7.4.2331Bram Moolenaar2016-09-051-1/+1
| | | | | | | Problem: Using CTRL-X CTRL-V to complete a command line from Insert mode does not work after entering an expression on the command line. Solution: Don't use "ccline" when not actually using a command line. (test by Hirohito Higashi)
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2201v7.4.2201Bram Moolenaar2016-08-121-5/+1
| | | | | Problem: The sign column disappears when the last sign is deleted. Solution: Add the 'signcolumn' option. (Christian Brabandt)
* patch 7.4.2188v7.4.2188Bram Moolenaar2016-08-091-1/+1
| | | | | Problem: Completion does not work properly with some plugins. Solution: Revert the part related to typing CTRL-E. (closes #972)
* patch 7.4.2146v7.4.2146Bram Moolenaar2016-08-021-2/+3
| | | | | | | Problem: Not enough testing for popup menu. CTRL-E does not always work properly. Solution: Add more tests. When using CTRL-E check if the popup menu is visible. (Christian Brabandt)
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-1/+1
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.2014v7.4.2014Bram Moolenaar2016-07-091-0/+1
| | | | | Problem: Using "noinsert" in 'completeopt' does not insert match. Solution: Set compl_enter_selects. (Shougo, closes #875)
* patch 7.4.2013v7.4.2013Bram Moolenaar2016-07-091-0/+1
| | | | | Problem: Using "noinsert" in 'completeopt' breaks redo. Solution: Set compl_curr_match. (Shougo, closes #874)
* patch 7.4.1961v7.4.1961Bram Moolenaar2016-06-261-1/+5
| | | | | | | | Problem: When 'insertmode' is reset while doing completion the popup menu remains even though Vim is in Normal mode. Solution: Ignore stop_insert_mode when the popup menu is visible. Don't set stop_insert_mode when 'insertmode' was already off. (Christian Brabandt)
* patch 7.4.1924v7.4.1924Bram Moolenaar2016-06-121-1/+1
| | | | | Problem: Missing "void" for functions without argument. Solution: Add "void". (Hirohito Higashi)
* patch 7.4.1758v7.4.1758Bram Moolenaar2016-04-201-1/+6
| | | | | | Problem: Triggering CursorHoldI when in CTRL-X mode causes problems. Solution: Do not trigger CursorHoldI in CTRL-X mode. Add "!" flag to feedkeys() (test with that didn't work though).
* patch 7.4.1757v7.4.1757Bram Moolenaar2016-04-201-5/+7
| | | | | | Problem: When using complete() it may set 'modified' even though nothing was inserted. Solution: Use Down/Up instead of Next/Previous match. (Shougo, closes #745)
* patch 7.4.1753v7.4.1753Bram Moolenaar2016-04-201-7/+15
| | | | | Problem: "noinsert" in 'completeopt' is sometimes ignored. Solution: Set the variables when the 'completeopt' was set. (Ozaki Kiichi)
* patch 7.4.1732v7.4.1732Bram Moolenaar2016-04-141-0/+2
| | | | | | Problem: Folds may close when using autocomplete. (Anmol Sethi) Solution: Increment/decrement disable_fold. (Christian Brabandt, closes #643)
* patch 7.4.1473v7.4.1473Bram Moolenaar2016-03-021-0/+6
| | | | | Problem: Can't build without the autocommand feature. Solution: Add #ifdefs. (Yegappan Lakshmanan)
* patch 7.4.1433v7.4.1433Bram Moolenaar2016-02-271-6/+0
| | | | | | Problem: The Sniff interface is no longer useful, the tool has not been available for may years. Solution: Delete the Sniff interface and related code.
* patch 7.4.1405v7.4.1405Bram Moolenaar2016-02-231-20/+34
| | | | | | Problem: Completion menu flickers. Solution: Delay showing the popup menu. (Shougo, Justin M. Keyes, closes #656)
* patch 7.4.1339v7.4.1339Bram Moolenaar2016-02-161-1/+1
| | | | | Problem: Warnings when building the GUI with MingW. (Cesar Romani) Solution: Add type cats. (Yasuhiro Matsumoto)
* patch 7.4.1296v7.4.1296Bram Moolenaar2016-02-091-0/+5
| | | | | | Problem: Cursor changes column with up motion when the matchparen plugin saves and restores the cursor position. (Martin Kunev) Solution: Make sure curswant is updated before invoking the autocommand.
* patch 7.4.1205v7.4.1205Bram Moolenaar2016-01-301-288/+224
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1196v7.4.1196Bram Moolenaar2016-01-291-100/+100
| | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
* patch 7.4.882v7.4.882Bram Moolenaar2015-09-251-0/+6
| | | | | | Problem: When leaving the command line window with CTRL-C while a completion menu is displayed the menu isn't removed. Solution: Force a screen update. (Hirohito Higashi)
* patch 7.4.849v7.4.849Bram Moolenaar2015-09-011-10/+63
| | | | | | Problem: Moving the cursor in Insert mode starts new undo sequence. Solution: Add CTRL-G U to keep the undo sequence for the following cursor movement command. (Christian Brabandt)
* patch 7.4.803v7.4.803Bram Moolenaar2015-07-281-3/+8
| | | | | Problem: C indent does not support C11 raw strings. (Mark Lodato) Solution: Do not change indent inside the raw string.
* patch 7.4.793v7.4.793Bram Moolenaar2015-07-211-19/+19
| | | | | Problem: Can't specify when not to ring the bell. Solution: Add the 'belloff' option. (Christian Brabandt)
* patch 7.4.784v7.4.784Bram Moolenaar2015-07-171-8/+3
| | | | | | Problem: Using both "noinsert" and "noselect" in 'completeopt' does not work properly. Solution: Change the ins_complete() calls. (Ozaki Kiichi)
* patch 7.4.775v7.4.775Bram Moolenaar2015-07-101-6/+38
| | | | | | Problem: It is not possible to avoid using the first item of completion. Solution: Add the "noinsert" and "noselect" values to 'completeopt'. (Shougo Matsu)
* patch 7.4.774v7.4.774Bram Moolenaar2015-07-101-0/+24
| | | | | | Problem: When using the CompleteDone autocommand event it's difficult to get to the completed items. Solution: Add the v:completed_items variable. (Shougo Matsu)
* updated for version 7.4.688v7.4.688Bram Moolenaar2015-03-311-0/+4
| | | | | | Problem: When "$" is in 'cpo' the popup menu isn't undrawn correctly. (Issue 166) Solution: When using the popup menu remove the "$".
* updated for version 7.4.680v7.4.680Bram Moolenaar2015-03-241-49/+71
| | | | | | Problem: CTRL-W in Insert mode does not work well for multi-byte characters. Solution: Use mb_get_class(). (Yasuhiro Matsumoto)
* updated for version 7.4.669v7.4.669Bram Moolenaar2015-03-201-1/+1
| | | | | | Problem: When netbeans is active the sign column always shows up. Solution: Only show the sign column once a sign has been added. (Xavier de Gaye)
* updated for version 7.4.661v7.4.661Bram Moolenaar2015-03-131-1/+2
| | | | | | | Problem: Using "0 CTRL-D" in Insert mode may have CursorHoldI interfere. (Gary Johnson) Solution: Don't store K_CURSORHOLD as the last character. (Christian Brabandt)
* updated for version 7.4.658v7.4.658Bram Moolenaar2015-03-081-4/+8
| | | | | | Problem: 'formatexpr' is evaluated too often. Solution: Only invoke it when beyond the 'textwidth' column, as it is documented. (James McCoy)
* updated for version 7.4.653v7.4.653Bram Moolenaar2015-03-051-18/+23
| | | | | | | Problem: Insert mode completion with complete() may have CTRL-L work like CTRL-P. Solution: Handle completion with complete() differently. (Yasuhiro Matsumoto, Christian Brabandt, Hirohito Higashi)
* updated for version 7.4.640v7.4.640Bram Moolenaar2015-02-171-4/+3
| | | | | | Problem: After deleting characters in Insert mode such that lines are joined undo does not work properly. (issue 324) Solution: Use Insstart instead of Insstart_orig. (Christian Brabandt)
* updated for version 7.4.590v7.4.590Bram Moolenaar2015-01-221-1/+1
| | | | | Problem: Using ctrl_x_mode as if it contains flags. Solution: Don't use AND with CTRL_X_OMNI. (Hirohito Higashi)
* updated for version 7.4.514v7.4.514Bram Moolenaar2014-11-121-0/+2
| | | | | Problem: Memory access error. (Dominique Pelle) Solution: Update tpos. (Christian Brabandt)
* updated for version 7.4.492v7.4.492Bram Moolenaar2014-10-311-2/+6
| | | | | | | Problem: In Insert mode, after inserting a newline that inserts a comment leader, CTRL-O moves to the right. (ZyX) Issue 57. Solution: Correct the condition for moving the cursor back to the NUL. (Christian Brabandt)
* updated for version 7.4.440v7.4.440Bram Moolenaar2014-09-091-2/+2
| | | | | | Problem: Omni complete popup drawn incorrectly. Solution: Call validate_cursor() instead of check_cursor(). (Hirohito Higashi)
* updated for version 7.4.435v7.4.435Bram Moolenaar2014-09-091-0/+9
| | | | | | Problem: Line formatting behaves differently when 'linebreak' is set. (mvxxc) Solution: Disable 'linebreak' temporarily. (Christian Brabandt)
* updated for version 7.4.407v7.4.407Bram Moolenaar2014-08-161-2/+8
| | | | | | Problem: Inserting text for Visual block mode, with cursor movement, repeats the wrong text. (Aleksandar Ivanov) Solution: Reset the update_Insstart_orig flag. (Christian Brabandt)
* updated for version 7.4.387v7.4.387Bram Moolenaar2014-07-301-1/+1
| | | | | Problem: "4gro" replaces one character then executes "ooo". (Urtica Dioica) Solution: Write the ESC in the second stuff buffer.
* updated for version 7.4.381v7.4.381Bram Moolenaar2014-07-231-0/+1
| | | | | | Problem: Get u_undo error when backspacing in Insert mode deletes more than one line break. (Ayberk Ozgur) Solution: Also decrement Insstart.lnum.
* updated for version 7.4.376v7.4.376Bram Moolenaar2014-07-231-2/+2
| | | | | Problem: Popup menu flickers too much. Solution: Remove the forced redraw. (Hirohito Higashi)
* updated for version 7.4.367v7.4.367Bram Moolenaar2014-07-161-1/+5
| | | | | | Problem: Other solution for redrawing after completion. Solution: Schedule a window redraw instead of just clearing the command line. (Jacob Niehus)
* updated for version 7.4.357v7.4.357Bram Moolenaar2014-07-091-2/+1
| | | | | Problem: After completion some characters are not redrawn. Solution: Clear the command line unconditionally. (Jacob Niehus)