aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* refactor: remove kbtree.hdundargoc2023-12-01
|
* refactor: remove SIZEOF_INT checkdundargoc2023-12-01
| | | | | I have not seen any indication that this is a problem tha can occur with cmake.
* ci: create setup actiondundargoc2023-12-01
| | | | This deduplicates common operations.
* refactor: move float_relative_str[] to nvim_win_get_config() (#26344)zeertzjq2023-12-01
| | | It's only used in one place, as it's usually conveyed as non-string.
* refactor: change event_create() to a macro (#26343)zeertzjq2023-12-01
| | | A varargs functions can never be inlined, so a macro is faster.
* fix(api): use a conditional stack for nvim_cmd (#26341)zeertzjq2023-12-01
|
* refactor(IWYU): fix includes for highlight_group.h (#26340)zeertzjq2023-12-01
|
* refactor(IWYU): create {ex_getln,rbuffer,os/fileio}_defs.h (#26338)zeertzjq2023-12-01
|
* fix: use BEL to terminate OSC 11 request (#26335)Gregory Anders2023-11-30
|
* Merge pull request #25870 from dundargoc/build/libtermkeyGregory Anders2023-11-30
|\ | | | | build: vendor libtermkey
| * docs: update MAINTAIN.mdGregory Anders2023-11-30
| |
| * fix(termkey): include IO header on WindowsGregory Anders2023-11-30
| |
| * fix(termkey): accept BEL (0x07) as OSC terminatorGregory Anders2023-11-30
| |
| * fix(termkey): do not sign extend mode valueGregory Anders2023-11-30
| |
| * build: vendor libtermkeydundargoc2023-11-30
| | | | | | | | | | This is a proof of concept/WIP to evaluate the viability of vendoring libtermkey as it's been deprecated.
* | vim-patch:9.0.2137: Can't detect angular & mustache filetypesObserverOfTime2023-11-30
|/ | | | | | | | | | Problem: Can't detect angular & mustache filetypes Solution: Detect *.mustache as Mustache filetype; detect *.component.html as html.angular filetype closes: vim/vim#13594 https://github.com/vim/vim/commit/7bed263c343c62129c5d8f51796895a28db1b312
* refactor: explicitly abort on OOM condition (#26330)Gregory Anders2023-11-30
| | | | assert() would not abort in release builds, meaning an OOM condition would be undetected.
* fix: Remove nested for_each_tree in TSTreeView (#26328)Pham Huy Hoang2023-11-30
| | | | | | | | | | | Problem: `LanguageTree:for_each_tree` calls itself for child nodes, so when we calls `for_each_tree` inside `for_each_tree`, this quickly leads to exponential tree calls. Solution: Use `pairs(child:trees())` directly in this case, as we don't need the extra callback for each children, this is already handled from the outer `for_each_tree` call
* refactor: suppress unused variable warnings in release builds (#26327)Gregory Anders2023-11-30
|
* refactor(IWYU): fix includes for cmdhist.h (#26324)zeertzjq2023-11-30
|
* fix(tui): grow termkey's internal buffer for large escape sequences (#26309)Gregory Anders2023-11-30
| | | | | | Some escape sequences (in particular, OSC 52 paste responses) can be very large, even unbounded in length. These can easily overflow termkey's internal buffer. In order to process these long sequences, dynamically grow termkey's internal buffer.
* fix(treesitter): fix parens stacking in inspector display (#26304)Gregory Anders2023-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When first opened, the tree-sitter inspector traverses all of the nodes in the buffer to calculate an array of nodes. This traversal is done only once, and _all_ nodes (both named and anonymous) are included. Toggling anonymous nodes in the inspector only changes how the tree is drawn in the buffer, but does not affect the underlying data structure at all. When the buffer is traversed and the list of nodes is calculated, we don't know whether or not anonymous nodes will be displayed in the inspector or not. Thus, we cannot determine during traversal where to put closing parentheses. Instead, this must be done when drawing. When we draw, the tree structure has been flatted into a single array, so we lose parent-child relationships that would otherwise make determining the number of closing parentheses straightforward. However, we can instead rely on the fact that a delta between the depth of a node and the depth of the successive node _must_ mean that more closing parentheses are required: (foo (bar) (baz) ↑ │ └ (bar) and (baz) have different depths, so (bar) must have an extra closing parenthesis This does not depend on whether or not anonymous nodes are displayed and so works in both cases.
* ci(release): perform a full checkout when building (#26323)zeertzjq2023-11-30
| | | Ref #13471
* refactor(IWYU): move typedefs out of globals.h (#26322)zeertzjq2023-11-30
|
* Merge pull request #23657 from luukvbaal/extmarkbfredl2023-11-30
|\ | | | | fix(extmark): restore extmarks when completing original text
| * fix(extmark): restore extmarks when completing original textLuuk van Baal2023-11-29
| |
* | refactor: move extern variables out of _defs.h files (#26320)zeertzjq2023-11-30
| |
* | refactor(IWYU): move UI and LineFlags to ui_defs.h (#26318)zeertzjq2023-11-30
| |
* | build: don't define FUNC_ATTR_* as empty in headers (#26317)zeertzjq2023-11-30
| | | | | | | | | | | | FUNC_ATTR_* should only be used in .c files with generated headers. Defining FUNC_ATTR_* as empty in headers causes misuses of them to be silently ignored. Instead don't define them by default, and only define them as empty after a .c file has included its generated header.
* | test: unskip more terminal tests on Windows (#26315)zeertzjq2023-11-30
| |
* | test(ex_terminal_spec): match descriptions (#26314)zeertzjq2023-11-30
| |
* | Merge pull request #25994 from luki446/windows-path-terminal-fixzeertzjq2023-11-30
|\ \ | | | | | | Fix a bug in usage of windows-style paths as SHELL path.
| * | test: :terminal when 'shell' uses backslasheszeertzjq2023-11-30
| | |
| * | fix(terminal): make backslashes in 'shell' work on WindowsLuki4462023-11-30
|/ / | | | | | | | | If backslashes are used in 'shell' option, escape them to make Terminal mode work.
* | ci(lintcommit): fix empty and period check with multiple colons (#26312)zeertzjq2023-11-30
| |
* | test(ex_terminal_spec): unskip tests that work on Windows (#26310)zeertzjq2023-11-30
| |
* | vim-patch:a9058440b7b9Christian Clason2023-11-29
| | | | | | | | | | | | | | | | | | | | | | | | runtime(html): Update syntax file (vim/vim#13591) Add missing search element and update ARIA attribute list. Add a very basic test file to check all elements are matched. https://github.com/vim/vim/commit/a9058440b7b9d7f5d0027c8cd44366e9200ca241 Co-authored-by: dkearns <dougkearns@gmail.com>
* | fix(treesitter): adjust indentation in inspector highlights (#26302)Gregory Anders2023-11-29
|/
* fix(termcap): escape escapes in passthrough sequence (#26301)Gregory Anders2023-11-29
| | | | When using the tmux passthrough sequence any escape characters in the inner sequence must be escaped by adding another escape character.
* fix(defaults): wait until VimEnter to set background (#26284)Gregory Anders2023-11-29
| | | | | | | The OptionSet autocommand does not fire until Vim has finished starting, so setting 'background' before the VimEnter event would not fire the OptionSet event. The prior implementation also waited until VimEnter to set 'background', so this was a regression introduced when moving background detection into Lua.
* refactor: move function macros out of vim_defs.h (#26300)zeertzjq2023-11-29
|
* docs: document TSNode:byte_length() (#26287)Gregory Anders2023-11-29
| | | | Also update the type annotation of TSNode:id(), which returns a string, not an integer.
* fix(treesitter): make InspectTree correctly handle nested injections (#26085)Pham Huy Hoang2023-11-29
| | | | | | | Problem: Only injections under the top level tree are found. Solution: Iterate through all trees to find injections. When two injections are contained within the same node in the parent tree, prefer the injection with the larger byte length.
* fix(treesitter): use proper query syntax for inspector (#26274)Gregory Anders2023-11-29
|
* refactor: move some constants out of vim_defs.h (#26298)zeertzjq2023-11-29
|
* perf(column): only invalidate lines affected by added signLuuk van Baal2023-11-29
|
* Merge pull request #26292 from luukvbaal/decorbfredl2023-11-29
|\ | | | | fix(decorations): do not apply sign highlight id as range attr id
| * fix(decorations): do not apply sign highlight id as range attr idLuuk van Baal2023-11-29
| |
* | vim-patch:9.0.2134: ml_get error when scrolling (#26264)zeertzjq2023-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ml_get error when scrolling after delete Solution: mark topline to be validated in main_loop if it is larger than current buffers line count reset_lnums() is called after e.g. TextChanged autocommands and it may accidentally cause curwin->w_topline to become invalid, e.g. if the autocommand has deleted some lines. So verify that curwin->w_topline points to a valid line and if not, mark the window to have w_topline recalculated in main_loop() in update_topline() after reset_lnums() returns. fixes: vim/vim#13568 fixes: vim/vim#13578 https://github.com/vim/vim/commit/c4ffeddfe5bd1824650e9b911ed9245bf56c69e3 The error doesn't happen in Nvim because Nvim triggers TextChanged after calling update_topline(). Co-authored-by: Christian Brabandt <cb@256bit.org>
* | refactor(IWYU): create normal_defs.h (#26293)zeertzjq2023-11-29
|/