aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | Bump all nvim-specific error codes above E5000James McCoy2016-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to not conflict with new error codes that Vim adds, all Neovim error codes should be above 5000. The three existing sub-5000 error codes (E926, E951, and E952) are now E50003, E5004, and E5005 respectively. E953 was removed in 6167ce6df2753d5474ad49aea19f5957128ab015, so just remove it from the help.
| * | vim-patch:7.4.1640James McCoy2016-11-15
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when an autocommand changes a quickfix list. (Dominique) Solution: Check wether an entry is still valid. (Yegappan Lakshmanan, Hirohito Higashi) https://github.com/vim/vim/commit/ffec3c53496d49668669deabc0724ec78e2274fd
* | | Merge pull request #5614 from Shougo/vim-7.4.2251James McCoy2016-11-15
|\ \ \ | |/ / |/| | | | | vim-patch:7.4.2251
| * | vim-patch:7.4.2251Shougo Matsushita2016-11-16
| | | | | | | | | | | | | | | | | | | | | Problem: In rare cases diffing 4 buffers is not enough. Solution: Raise the limit to 8. (closes vim/vim#1000) https://github.com/vim/vim/commit/015efc32c1add6269099364835ddf85ff257b3c6
* | | Merge pull request #5615 from jamessan/vim-7.4.1892James McCoy2016-11-15
|\ \ \ | |/ / |/| | vim-patch:7.4.1892,7.4.1894
| * | vim-patch:7.4.1894James McCoy2016-11-15
| | | | | | | | | | | | | | | | | | | | | Problem: Cannot get the window ID for a mouse click. Solution: Add v:mouse_winid. https://github.com/vim/vim/commit/511972d810ea490955161ff5097ec2f57919ceaf
| * | vim-patch:7.4.1892James McCoy2016-11-15
|/ / | | | | | | | | | | | | Problem: balloon eval only gets the window number, not the ID. Solution: Add v:beval_winid. https://github.com/vim/vim/commit/c9721bdc63378cc6123e775ffe43e9cba30322b3
* | Merge pull request #5611 from jamessan/vim-7.4.2174James McCoy2016-11-15
|\ \ | | | | | | vim-patch:7.4.2174
| * | lintJames McCoy2016-11-15
| | |
| * | vim-patch:7.4.2174James McCoy2016-11-15
| | | | | | | | | | | | | | | | | | | | | Problem: Adding duplicate flags to 'whichwrap' leaves commas behind. Solution: Also remove the commas. (Naruhiko Nishino) https://github.com/vim/vim/commit/c8ce615299b4d8c1b2e6cf83496f48cd497d8a37
* | | vim-patch:8.0.0035 (#5609)Shougo2016-11-15
|/ / | | | | | | | | | | | | Problem: Order of matches for 'omnifunc' is messed up. (Danny Su) Solution: Do not set compl_curr_match when called from complete_check(). (closes vim/vim#1168) https://github.com/vim/vim/commit/472e85970ee3a80abd824bef510df12e9cfe9e96
* | vim-patch.sh: Remove "set -o pipefail"James McCoy2016-11-15
| | | | | | | | | | | | | | | | | | grep 2.26 changed its behavior when redirecting its output to /dev/null such that it exits as soon as one match is found. This causes sed to get a SIGPIPE which, due to "set -o pipefail", falsely implies that the patch is not applied. Removing "set -o pipefail" preserves the good exit status from grep.
* | CheckHealth: Fix version comparison.Justin M. Keyes2016-11-15
| | | | | | | | Compare numbers instead of strings.
* | Merge #5607 from justinmk/icmJustin M. Keyes2016-11-15
|\ \ | | | | | | 'inccommand': auto-disable if too slow; fix other behaviors
| * | 'inccommand': Add tests.Justin M. Keyes2016-11-15
| | |
| * | 'inccommand': Introduce CMDPREVIEW state.Justin M. Keyes2016-11-15
| | | | | | | | | | | | | | | | | | | | | Command "live preview" is fundamentally a non-recursive concept ("preview of a preview" is not useful). Maintaining this as a global is less awkward and closer to what we actually want to express, vs adorning exarg_T, CommandLineState, etc.
| * | inccommand=nosplit: Jump to first match.Justin M. Keyes2016-11-15
| | | | | | | | | | | | | | | | | | Call update_topline() to adjust the current viewport. Closes #5597
| * | 'inccommand': Detect "non-interactive", "too slow".Justin M. Keyes2016-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command_line_changed: - Check (current_SID == 0) instead of KeyTyped - We want to update during mappings (KeyTyped is false then). - Check vpeekc_any() - Avoids unnecessary work. - Avoids triggering live preview during macros. - Caveat: This makes the redraw "stutter" if user spams (holds a key) in the replace pattern. But that scenario is not important. - Update screen if the command is changed to a non-live command. (`s->live` goes from true => false) => clears the preview command_line_execute: - Let CTRL-C cancel live preview do_sub: - Enforce a time limit ('redrawtime'). - Unset 'inccommand' if time limit is reached. Closes #5602 Closes #5585
* | | Merge pull request #5606 from jamessan/vim-7.4.1658James McCoy2016-11-14
|\ \ \ | |/ / |/| | vim-patch:7.4.1658
| * | lintJames McCoy2016-11-14
| | |
| * | vim-patch:7.4.1658James McCoy2016-11-14
|/ / | | | | | | | | | | | | | | Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable. https://github.com/vim/vim/commit/1473551a4457d4920b235eeeb9f279e196ee7225
* | Merge pull request #5603 from jamessan/remove-flaky-term-resize-testJames McCoy2016-11-13
|\ \ | | | | | | test: window_spec: Remove flaky terminal resize test
| * | test: window_spec: Remove flaky terminal resize testJames McCoy2016-11-13
|/ /
* | Merge #5582 from justinmk/icmJustin M. Keyes2016-11-12
|\ \ | | | | | | 'inccommand': Support :smagic/:snomagic. Less jumping around.
| * | 'inccommand': Simplify cursor placement logic.Justin M. Keyes2016-11-11
| | | | | | | | | | | | | | | Remove the inner for-loop; just use the column of the first in-line match.
| * | 'inccommand': Restore cursor/view if cancelled.Justin M. Keyes2016-11-10
| | | | | | | | | | | | | | | Restore cursor position and window "view", if command is cancelled. This is how 'incsearch' works.
| * | 'inccommand': buftype=nofile, restore cursor/viewJustin M. Keyes2016-11-10
| | | | | | | | | | | | | | | | | | | | | - Use a standard scratch buffer instead of a new 'buftype', functions like curbufIsChanged() already have special handling for scratch bufs. - Cleanup some stuff from the previous merge. - Add support for :smagic, :snomagic. Closes #5578
* | | CheckHealth: Include v:throwpoint in error message (#5575)Tommy Allen2016-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * health.vim: Include v:throwpoint in error message * health/provider.vim: Check for ruby executable * health/provider.vim: Combine subprocess stdout and stderr * test: Updated CheckHealth test
* | | vim-patch:7.4.1634 (#5594)James McCoy2016-11-12
| | | | | | | | | | | | | | | | | | | | | Problem: Vertical movement after CTRL-A ends up in the wrong column. (Urtica Dioica) Solution: Set curswant when appropriate. (Hirohito Higashi) https://github.com/vim/vim/commit/8e08125d3a9afd0b16cd84454ae9ddad0abaaab0
* | | vim-patch:7.4.1614 (#5593)James McCoy2016-11-12
| | | | | | | | | | | | | | | | | | Problem: Still quickfix test in old style. Solution: Turn test 10 into a new style test. https://github.com/vim/vim/commit/7eba3d2cbf19e731dc51652bc26099cc253d538a
* | | Merge pull request #5592 from jamessan/vim-7.4.1591James McCoy2016-11-11
|\ \ \ | |/ / |/| | vim-patch:7.4.1591
| * | vim-patch:7.4.1591James McCoy2016-11-11
|/ / | | | | | | | | | | | | Problem: The quickfix title is truncated. Solution: Save the command before it is truncated. (Anton Lindqvist) https://github.com/vim/vim/commit/5584df65a0ca2315d1eebc13c54a448bee4d0758
* | Merge #5561 'inccommand'Justin M. Keyes2016-11-09
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial work by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0) Major revisions by: KillTheMule Björn Linse <bjorn.linse@gmail.com> Justin M. Keyes <justinkz@gmail.com>
| * | 'inccommand': Preserve curbuf->b_u_newhead.Justin M. Keyes2016-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for undotree(). Helped-by: Björn Linse <bjorn.linse@gmail.com> When "curhead" points to a valid head, the value of "newhead" is meaningless (and really should be set to null). The undo state for a buffer is _logically_ the enum: enum UndoState { CurrentHead(head), NewHead(head), EmptyTree } nvim _represents_ this as: whenever `curbuf->b_u_curhead` is nonnull it should be used as the current head, and `curbuf->b_u_newhead` is ignored. If the there is a current head, then this will be redoed on the next redo, and its parent will be undone on next undo. Only if `b_u_curhead` is NULL, `b_u_newhead` will be used as the head to undo (and it is not possible to redo). Also both can be NULL, to indicate an empty undotree. (To be fair, this only strictly true when calling undo.c from the outside, in some places _within_ a function in undo.c both values might be meaningful) Apparently `undotree()` breaks this non-abstraction, this _cosmetic_ issue can easily be fixed by `ex_substitute` also saving and restoring `b_u_newhead`, but is doesn't reflect any error really how `u_undo_and_forget` manipulates the _actual_ state of the undo tree.
| * | perf: do_sub(): avoid work, avoid screen updatesJustin M. Keyes2016-11-08
| | | | | | | | | | | | | | | - Don't fill matched_lines if not showing a preview (!eap->is_live). - Encapsulate: Move cursor placement logic to show_sub().
| * | 'inccommand': preserve 'modified'Justin M. Keyes2016-11-08
| | | | | | | | | | | | | | | During the live preview, the buffer-local 'modified' flag should not be changed.
| * | 'inccommand': Do not trigger during scripts, feedkeys().Justin M. Keyes2016-11-08
| | |
| * | 'inccommand': test: scripts/feedkeys() should not trigger previewKillTheMule2016-11-08
| | |
| * | 'inccommand': rename 'incsubstitute'Justin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | 'inccommand' allows us to expand the feature to other commands, such as: :cdo :cfdo :global Also rename "IncSubstitute" highlight group to "Substitute".
| * | 'inccommand': format line numbers as "|123| "Justin M. Keyes2016-11-08
| | | | | | | | | | | | This matches what Quickfix traditionally does.
| * | 'inccommand': set buffer name to [Preview]Justin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | | [inc_sub] is less obvious for users. Also, in the future we may want to generalize the idea of a "preview buffer", or "incremental commands" besides :substitute.
| * | 'inccommand': disable 'cursorline', 'spell' in previewJustin M. Keyes2016-11-08
| | |
| * | 'inccommand': preserve b:changedtickJustin M. Keyes2016-11-08
| | |
| * | lintJustin M. Keyes2016-11-08
| | |
| * | 'inccommand': reworkJustin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Eliminate/isolate static/global variables - Remove special-case parameter from buflist_new() - Remove special-case ECMD_RESERVED_BUFNR - To determine when u_undo_and_forget() should be done, check b_changedtick instead of a heuristic. - use mb_string2cells() instead of strlen() to measure the :sub patterns - call ml_close() before buf_clear_file(). Avoids leaks caught by ASan. Original patch by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0)
| * | LintedKillTheMule2016-10-30
| | |
| * | Tests for incsubstitution featureKillTheMule2016-10-30
| | |
| * | Incsubsitution featureKillTheMule2016-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally implemented by * Clement0 * DesbyP * aym7 * Adrey06 * Robinhola in #4811. Major reworkings and bug fixes by * bfredl Most tests suggested by ZyX-l, suggestions for improvements by oni-link.
* | | CheckHealth: ignore non-existing markdownCodeBlock group (#5570)Marco Hinz2016-11-08
| | | | | | | | | | | | | | | | | | | | | | | | People using [1] would experience an error, because their markdown syntax doesn't define the markdownCodeBlock group. [1]: https://github.com/plasticboy/vim-markdown Closes #5569
* | | CheckHealth: timeout system() calls (#5565)Tommy Allen2016-11-08
| | |