aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
Commit message (Collapse)AuthorAge
...
* Merge #8832 from eraserhd/vim-insert-setline-undo-fixesJustin M. Keyes2018-08-14
|\
| * Fix lintJason Felice2018-08-09
| |
| * vim-patch:8.1.0256: using setline() in TextChangedI splits undoJason Felice2018-08-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using setline() in TextChangedI splits undo. Solution: Use another solution for undo not working properly. https://github.com/vim/vim/commit/9fa9506853516c82851baec643aa47458cb8b3bc This deviates from Vim in the handling of the CursorHoldI event. In Vim, any buffer changes are merged into the insert. In Neovim, CursorHoldI is handled via the multiqueue, and the point at which the cursor hold is implemented (in input.c) doesn't know enough about it. Making all queued events merge into the insert seems more wronger since changes by other asynchronous events really should be separately undoable.
| * vim-patch:8.1.0245: calling setline() in TextChangedI autocmd breaks undoJason Felice2018-08-09
| | | | | | | | | | | | | | Problem: Calling setline() in TextChangedI autocmd breaks undo. (Jason Felice) Solution: Don't save lines for undo when already saved. (closes vim/vim#3291) https://github.com/vim/vim/commit/91d2e783b41ca900bc603b3cb5e083c8a4a33170
| * vim-patch:8.1.0057: popup menu displayed wrong when using autocmdJason Felice2018-08-09
| | | | | | | | | | | | | | Problem: Popup menu displayed wrong when using autocmd. Solution: Use aucmd_prepbuf(). Force updating status line if the popup menu is going to be redrawn anyway. (Christian Brabandt, closes vim/vim#3009) https://github.com/vim/vim/commit/6ba3ec1bace67513a352326864cebc16b3c5bc56
* | refactor: Replace vim_strrchr() with strrchar() (#8718)ZviRackover2018-08-11
|/ | | | ref #1474
* Merge #8744 from janlazo/vim-8.0.0890Justin M. Keyes2018-08-08
|\
| * misc: fixpos in del_char() is boolJan Edmund Lazo2018-08-07
| |
| * edit: end_insert in check_auto_format() is boolJan Edmund Lazo2018-08-07
| |
| * edit: did_add_space is boolJan Edmund Lazo2018-08-07
| |
| * memline: copy in ml_replace() is boolJan Edmund Lazo2018-08-07
| |
| * edit: temp in ins_del() is const intJan Edmund Lazo2018-08-06
| |
| * vim-patch:8.0.1575: crash when using virtual replaceJan Edmund Lazo2018-08-06
| | | | | | | | | | | | Problem: Crash when using virtual replace. Solution: Adjust orig_line_count. Add more tests. (Christian Brabandt) https://github.com/vim/vim/commit/63e82db6fc910b2d8f1cd018894e50e8b4448155
* | Remove some occrrences of enc_utf8 and has_mbyteZviRackover2018-08-06
| | | | | | | | | | Removing uses and related dead code in the locallity of changes of the two parent commits.
* | lint: clean-up after parent commitZviRackover2018-08-06
| |
* | Remove all occurences of the mb_ptr2char macroZviRackover2018-08-06
|/ | | | | | | First step towards implemening issue #7401. The same can be done for all deprecated mb_ functions in follow-up patches.
* lintJan Edmund Lazo2018-08-06
|
* globals: did_ai is boolJan Edmund Lazo2018-08-06
|
* globals: did_si is boolJan Edmund Lazo2018-08-06
|
* globals: can_si is boolJan Edmund Lazo2018-08-06
|
* globals: can_si_back is boolJan Edmund Lazo2018-08-06
|
* edit: haveto_redraw (local variable) is boolJan Edmund Lazo2018-08-06
|
* edit: can_cindent is boolJan Edmund Lazo2018-08-06
|
* edit: fix variables in ins_mousescroll()Jan Edmund Lazo2018-08-06
| | | | | | Declare and initialize them on same line. Add const if possible. Refactor 'did_scroll' local variable from int to bool.
* vim-patch:8.0.0948: crash if timer closes window while dragging status lineJan Edmund Lazo2018-08-05
| | | | | | | Problem: Crash if timer closes window while dragging status line. Solution: Check if the window still exists. (Yasuhiro Matsumoto, closes vim/vim#1979) https://github.com/vim/vim/commit/989a70c590c2bd109eb362d3a0e48cb1427ae13d
* edit: dont_sync_undo is TriStateJan Edmund Lazo2018-08-01
|
* *: Replace b_changedtick with new always-inline functionsZyX2018-06-22
| | | Ref #8474
* vim-patch:8.0.0669: CTRL-N at start of the buffer does not work correctly ↵Jan Edmund Lazo2018-06-20
| | | | | | | | (#8600) 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) https://github.com/vim/vim/commit/24a9e348aa88a6c60ae0cdf5c4a777d8c03b08ca
* fix lintckelsel2018-06-16
|
* vim-patch:8.0.0530: buffer overflow when 'columns' is very bigckelsel2018-06-16
| | | | | | | Problem: Buffer overflow when 'columns' is very big. (Nikolai Pavlov) Solution: Correctly compute where to truncate. Fix translation. (closes vim/vim#1600) https://github.com/vim/vim/commit/658a3a2caf5852d071b6b1be92d9d6614a6208dc
* Merge #8543 from janlazo/vim-8.0.0596Justin M. Keyes2018-06-16
|\
| * lintJan Edmund Lazo2018-06-13
| |
| * vim-patch:8.0.0596: crash when complete() called after complete_add()Jan Edmund Lazo2018-06-13
| | | | | | | | | | | | | | | | Problem: Crash when complete() is called after complete_add() in 'completefunc'. (Lifepillar) Solution: Bail out if compl_pattern is NULL. (closes vim/vim#1668) Also avoid using freed memory. https://github.com/vim/vim/commit/4475b623960671898dac6a72b13a8d140402afa6
* | vim-patch:8.0.0451: some macros are in lower caseJan Edmund Lazo2018-06-12
|/ | | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice. https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
* Merge #8499 from janlazo/vim-8.0.0533Justin M. Keyes2018-06-10
|\
| * vim-patch:8.0.0541: compiler warning on MS-WindowsJan Edmund Lazo2018-06-08
| | | | | | | | | | | | Problem: Compiler warning on MS-Windows. Solution: Add a type cast. (Mike Williams) https://github.com/vim/vim/commit/04000560ca81cc2608b291d0990e661b41ca8c68
| * vim-patch:8.0.0533: abbreviation doesn't work after backspacing newlineJan Edmund Lazo2018-06-08
| | | | | | | | | | | | Problem: Abbreviation doesn't work after backspacing newline. (Hkonrk) Solution: Set the insert start column. (closes vim/vim#1609) https://github.com/vim/vim/commit/878c263a489b7e211eda31fa13a3d5ad9e120554
* | vim-patch:8.0.0466: still macros that should be all-caps (#8510)Jan Edmund Lazo2018-06-10
|/ | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps. https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c
* Merge #8377 'TextChangedP autocommand'Justin M. Keyes2018-05-19
|\
| * vim-patch:8.0.1494: no autocmd triggered in Insert mode with visible popup menuShougo Matsushita2018-05-14
|/ | | | | | | | | | Problem: No autocmd triggered in Insert mode with visible popup menu. Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt, closes vim/vim#2372, closes vim/vim#1691) Fix that the TextChanged autocommands are not always triggered when sourcing a script. https://github.com/vim/vim/commit/5a093437199001a0d60d8e18e2b9539b99a7757c
* Merge #8218 'Fix errors reported by PVS'Justin M. Keyes2018-04-27
|\ | | | | closes #4983
| * edit: Fix PVS/V560: remove always true/false checksZyX2018-04-10
| |
* | Merge #8226 from justinmk/insert-mode-metaJustin M. Keyes2018-04-04
|\ \
| * | insert-mode: interpret unmapped META as ESCJustin M. Keyes2018-04-04
| |/ | | | | | | | | | | closes #2454 closes #8213 ref #7972
* / ins_compl_add_tv: fix memory leaks via get_spec_reg (#8224)Daniel Hahler2018-04-03
|/ | | Fixes #8186
* getchar: implement <Cmd> key to invoke command in any modeBjörn Linse2018-03-23
|
* vim-patch:8.0.0262,8.0.0263 (#8123)KunMing Xie2018-03-11
| | | | | | | | | | | | | vim-patch:8.0.0262: Farsi support is barely tested Problem: Farsi support is barely tested. Solution: Add more tests for Farsi. Clean up the code. https://github.com/vim/vim/commit/ddf662a1c86ef0b4bd0c55c5f0aa192ebd6d9a5e vim-patch:8.0.0263: Farsi support is not tested enough Problem: Farsi support is not tested enough. Solution: Add more tests for Farsi. Clean up the code. https://github.com/vim/vim/commit/80627cf51fd4274320875193a43ce11cee58c96e
* vim-patch:8.0.1493: completion items cannot be annotated (#8003)Shougo2018-02-18
| | | | | | | Problem: Completion items cannot be annotated. Solution: Add a "user_data" entry to the completion item. (Ben Jackson, coses vim/vim#2608, closes vim/vim#2508) https://github.com/vim/vim/commit/9b56a57cdae31f7a2c85d440392bf63d3253a158
* vim-patch:8.0.0358,8.0.0359 (#7832)KunMing Xie2018-01-30
| | | | | | | | | | | | | vim-patch:8.0.0358: invalid memory access in C-indent code Problem: Invalid memory access in C-indent code. Solution: Don't go over end of empty line. (Dominique Pelle, closes vim/vim#1492) https://github.com/vim/vim/commit/60629d642541a089c322e65963c0a77e5f77eb79 vim-patch:8.0.0359: 'number' and 'relativenumber' are not properly tested Problem: 'number' and 'relativenumber' are not properly tested. Solution: Add tests, change old style to new style tests. (Ozaki Kiichi, closes vim/vim#1447) https://github.com/vim/vim/commit/dc9a081712ec8c140e6d4909e9f6b03a629d32d3
* vim-patch:8.0.0448: some macros are lower case (#7936)KunMing Xie2018-01-30
| | | | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case. https://github.com/vim/vim/commit/b5aedf3e228d35821591da9ae8501b61cf2e264c ref #6297