summaryrefslogtreecommitdiff
path: root/src/change.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1690: text properties not adjusted for "I" in Visual block modev8.2.1690Bram Moolenaar2020-09-151-1/+1
| | | | | Problem: Text properties not adjusted for "I" in Visual block mode. Solution: Call inserted_bytes().
* patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar2020-05-301-1/+1
| | | | | Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
* patch 8.2.0670: cannot change window when evaluating 'completefunc'v8.2.0670Bram Moolenaar2020-04-301-2/+2
| | | | | | 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.0500: using the same loop in many placesv8.2.0500Bram Moolenaar2020-04-021-4/+2
| | | | | Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
* patch 8.2.0324: text property not updated correctly when inserting/deletingv8.2.0324Bram Moolenaar2020-02-261-1/+1
| | | | | | | Problem: Text property not updated correctly when inserting/deleting. Solution: Use the right column when deleting. Make zero-width text properties respect start_incl and end_incl. (Axel Forsman, closes #5696, closes #5679)
* patch 8.2.0074: Python 3 unicode test someitmes failsv8.2.0074Bram Moolenaar2020-01-011-1/+1
| | | | | Problem: Python 3 unicode test someitmes fails. Solution: Make 'termencoding' empty. Correct number of error message.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-3/+3
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2368: using old C style commentsv8.1.2368Bram Moolenaar2019-11-301-6/+6
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2331: the option.c file is still very bigv8.1.2331Bram Moolenaar2019-11-211-0/+51
| | | | | | Problem: The option.c file is still very big. Solution: Move a few functions to where they fit better. (Yegappan Lakshmanan, closes #4895)
* patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar2019-11-171-2/+2
| | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
* patch 8.1.2214: too much is redrawn when 'cursorline' is setv8.1.2214Bram Moolenaar2019-10-241-8/+13
| | | | | Problem: Too much is redrawn when 'cursorline' is set. Solution: Don't do a complete redraw. (closes #5079)
* patch 8.1.2211: listener callback "added" argument is not the totalv8.1.2211Bram Moolenaar2019-10-241-2/+2
| | | | | | Problem: Listener callback "added" argument is not the total. (Andy Massimino) Solution: Compute the total. (closes #5105)
* patch 8.1.2127: the indent.c file is a bit bigv8.1.2127Bram Moolenaar2019-10-091-145/+0
| | | | | | | 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.2107: various memory leaks reported by asanv8.1.2107Bram Moolenaar2019-10-011-1/+19
| | | | | Problem: Various memory leaks reported by asan. Solution: Free the memory. (Ozaki Kiichi, closes #5003)
* patch 8.1.2096: too many #ifdefsv8.1.2096Bram Moolenaar2019-09-281-28/+2
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
* patch 8.1.2029: cannot control 'cursorline' highlighting wellv8.1.2029Bram Moolenaar2019-09-141-2/+3
| | | | | Problem: Cannot control 'cursorline' highlighting well. Solution: Add "screenline". (Christian Brabandt, closes #4933)
* patch 8.1.1926: cursorline not redrawn when putting a line above the cursorv8.1.1926Bram Moolenaar2019-08-251-3/+8
| | | | | Problem: Cursorline not redrawn when putting a line above the cursor. Solution: Redraw when the curor line is below a change. (closes #4862)
* patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar2019-08-211-4/+1
| | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-1/+1
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1800: function call functions have too many argumentsv8.1.1800Bram Moolenaar2019-08-031-3/+1
| | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
* patch 8.1.1710: Coverity found dead codev8.1.1710Bram Moolenaar2019-07-171-43/+10
| | | | | Problem: Coverity found dead code. Solution: Remove merging of listener changes.
* patch 8.1.1675: listener list not correctly updated on listener_remove()v8.1.1675Bram Moolenaar2019-07-131-2/+7
| | | | | | Problem: Listener list not correctly updated on listener_remove(). Solution: Only set "prev" when not removing a listener. Return one if the listener was found and removed.
* patch 8.1.1498: ":write" increments b:changedtick even though nothing changedv8.1.1498Bram Moolenaar2019-06-081-2/+6
| | | | | | Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset.
* patch 8.1.1486: a listener change is merged even when it adds a linev8.1.1486Bram Moolenaar2019-06-061-0/+1
| | | | | Problem: A listener change is merged even when it adds a line. (Paul Jolly) Solution: Do not merge a change that adds or removes a line. (closes #4490)
* patch 8.1.1437: code to handle callbacks is duplicatedv8.1.1437Bram Moolenaar2019-06-011-13/+11
| | | | | Problem: Code to handle callbacks is duplicated. Solution: Add callback_T and functions to deal with it.
* patch 8.1.1419: listener callbacks may be called recursivelyv8.1.1419Bram Moolenaar2019-05-291-1/+15
| | | | | Problem: Listener callbacks may be called recursively. Solution: Set "updating_screen" while listener callbacks are invoked.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-1/+1
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1389: changes are not flushed when end and start overlapv8.1.1389Bram Moolenaar2019-05-241-6/+10
| | | | | | Problem: Changes are not flushed when end and start overlap. (Paul Jolly) Solution: When end of a previous changes overlaps with start of a new change, first flush listeners.
* 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-3/+3
| | | | | | 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.1344: Coverity complains about possibly using a NULL pointerv8.1.1344Bram Moolenaar2019-05-181-4/+8
| | | | | | | Problem: Coverity complains about possibly using a NULL pointer and copying a string into a fixed size buffer. Solution: Check for NULL, even though it should not happen. Use vim_strncpy() instead of strcpy().
* patch 8.1.1335: listener callback is called after inserting textv8.1.1335Bram Moolenaar2019-05-161-44/+81
| | | | | | Problem: Listener callback is called after inserting text. Solution: Flush the changes before inserting or deleting a line. Store changes per buffer.
* patch 8.1.1333: text properties don't always move after changesv8.1.1333Bram Moolenaar2019-05-151-2/+8
| | | | | | Problem: Text properties don't always move after changes. Solution: Update properties before reporting changes to listeners. Move text property when splitting a line.
* patch 8.1.1332: cannot flush listeners without redrawing, mix of changesv8.1.1332Bram Moolenaar2019-05-141-8/+96
| | | | | | | Problem: Cannot flush change listeners without also redrawing. The line numbers in the list of changes may become invalid. Solution: Add listener_flush(). Invoke listeners before adding a change that makes line numbers invalid.
* patch 8.1.1321: no docs or tests for listener functionsv8.1.1321Bram Moolenaar2019-05-111-16/+25
| | | | | | Problem: No docs or tests for listener functions. Solution: Add help and tests for listener_add() and listener_remove(). Invoke the callbacks before redrawing.
* patch 8.1.1320: it is not possible to track changes to a bufferv8.1.1320Bram Moolenaar2019-05-111-0/+131
| | | | | Problem: It is not possible to track changes to a buffer. Solution: Add listener_add() and listener_remove(). No docs or tests yet.
* Add missing files from patch 8.1.1318Bram Moolenaar2019-05-111-0/+2165