aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* build: remove functionaltest-lua targetdundargoc2023-05-24
| | | | | It's not needed anymore as it does the exact same thing as functionaltest. The functionaltest target will test the lua type neovim was built with, which can be toggled with the PREFER_LUA option.
* fix(folds): show Folded highlight in Visual selection (#23741)zeertzjq2023-05-24
| | | Note: CursorLine highlight is now combined with Folded.
* feat(term): enable reflow by default (#21124)Christian Clason2023-05-24
| | | | | | | | | libvterm v0.3 supports reflow of terminal buffer when Nvim is resized Since v0.3 is now a required dependency, enable it by default to find (and fix) possible issues. Note: Neovim's scrollback buffer does not support reflow (yet), so lines vanishing into the buffer due to a too small window will be restored without reflow.
* vim-patch:9.0.1575: "file N of M" message is not translated (#23737)zeertzjq2023-05-24
| | | | | | | | Problem: "file N of M" message is not translated. Solution: Make argument count message translatable. (close vim/vim#12429) https://github.com/vim/vim/commit/a8490a4952c320f234ae4528d4a1e812a27f3a0a Co-authored-by: Bram Moolenaar <Bram@vim.org>
* ci: remove api-docs-check workflowdundargoc2023-05-24
| | | | Having a workflow that creates a PR with the necessary changes on master is redundant as this check is enforced for each PR anyway.
* fix(deps): restore functionality of USE_EXISTING_SRC_DIRdundargoc2023-05-24
|\ | | | | fix(deps): restore functionality of USE_EXISTING_SRC_DIR
| * fix(deps): restore functionality of USE_EXISTING_SRC_DIRJames McCoy2023-05-22
| | | | | | | | | | 30a0299bc removed the USE_EXISTING_SRC_DIR hack which broke building the nightly PPA since ExternalProject tried to download the sources.
| * ci: add check to ensure USE_EXISTING_SRC_DIR=ON builds workJames McCoy2023-05-22
| |
* | refactor: fix clang/PVS warnings (#23731)zeertzjq2023-05-23
| |
* | Merge pull request #23730 from famiu/refactor/api/helpersbfredl2023-05-23
|\ \ | | | | | | refactor(api): new helper macros for cstrings as objects
| * | refactor(api): new helper macrosFamiu Haque2023-05-23
| | | | | | | | | | | | Adds new API helper macros `CSTR_AS_OBJ()`, `STATIC_CSTR_AS_OBJ()`, and `STATIC_CSTR_TO_OBJ()`, which cleans up a lot of the current code. These macros will also be used extensively in the upcoming option refactor PRs because then API Objects will be used to get/set options. This PR also modifies pre-existing code to use old API helper macros like `CSTR_TO_OBJ()` to make them cleaner.
* | | fix(colorscheme): try .lua files in 'rtp' before .vim files in 'pp' (#23727)zeertzjq2023-05-23
| | | | | | | | | | | | | | | | | | This ensures that colorschemes in 'rtp' are tried before ones in 'pp', because some colorschemes in 'pp' may not work if not added to 'rtp'. This also match the current documentation better.
* | | Merge pull request #20130 from bfredl/inlinebfredl2023-05-22
|\ \ \ | | | | | | | | feat(ui): inline virtual text
| * | | refactor(drawline): move inline text code to its own functionbfredl2023-05-22
| | | |
| * | | fix(test): clean up inline virtual text tests a littlebfredl2023-05-22
| | | |
| * | | fix(extmark): fix cursor position with both left and right gravity inline textbfredl2023-05-22
| | | |
| * | | docs: update api.txt and add inline virtual text to news.txttom-anders2023-05-22
| | | |
| * | | vim-patch:9.0.0210: 'list' mode does not work properly with virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'list' mode does not work properly with virtual text. Solution: Show the "$" at the right position. (closes vim/vim#10913) https://github.com/vim/vim/commit/c3a483fc3c65f649f9985bb88792a465ea18b0a2#diff-15009492c2b1d0a2629908b4618ad51c99d16746f238a0e6451dfe32355ed32fR1653 This commit only contains the seemingly refactored portion (not entirely sure what it does) Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | fix(ui): fix overflowing nowrap virtual text not displaying if tab followsIbby2023-05-22
| | | |
| * | | fix(ui): fix virtual text not displaying when two overlapping inlines (nowrap)Ibby2023-05-22
| | | |
| * | | vim-patch:9.0.1067: in diff mode virtual text is highlighted incorrectlyIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: In diff mode virtual text is highlighted incorrectly. (Rick Howe) Solution: Do not use diff attributes for virtual text. (closes vim/vim#11714) https://github.com/vim/vim/commit/d097af77797f030e0f29f9bbc298358a5addb2a5 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | fix(ui): fix incorrect highlighting when virtual text next to matchIbby2023-05-22
| | | |
| * | | fix(ui): fix incorrect highlighting when virtual text wraps with numberIbby2023-05-22
| | | |
| * | | vim-patch:9.0.0944: 'cursorline' causes virtual text highlight to continueIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'cursorline' causes virtual text highlight to continue. Solution: Save and restore line_attr. (closes vim/vim#11588) https://github.com/vim/vim/commit/6ac16f0c0fe923098b9df5ac430f1923045f16ea Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | fix(ui): fix tabs not being spaced properly after virtual text with no wrapIbby2023-05-22
| | | | | | | | | | | | | | | | also fixes incorrect skipping of multibyte characters
| * | | vim-patch:9.0.0716: with 'nowrap' virtual text "after" does not scroll leftIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: With 'nowrap' virtual text "after" does not scroll left. Solution: Skip part of the virtual text that is left of the window. (closes vim/vim#11320) Fix going beyond the last column of the window. https://github.com/vim/vim/commit/cd105417a53fcf97c0935f3468201ef11516c9f1 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | fix(ui): fixes incorrect rendering when virtual text is not visable and nowrapIbby2023-05-22
| | | |
| * | | vim-patch:9.0.0205: cursor in wrong position when inserting after virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor in wrong position when inserting after virtual text. (Ben Jackson) Solution: Put the cursor after the virtual text, where the text will be inserted. (closes vim/vim#10914) https://github.com/vim/vim/commit/28c9f895716cfa8f1220bc41b72a534c0e10cabe Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | fix(ui): fix visual and search highlighting interfering with virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:9.0.0193: search and match highlgith interfere with virtual text Problem: Search and match highlgith interfere with virtual text highlight. (Ben Jackson) Solution: Check for match highlight after text properties. Reset and restore search highlight when showing virtual text. (closes vim/vim#10892) https://github.com/vim/vim/commit/e38fc86180fd3f6b372648eea6adc3f623fea302 vim-patch:9.0.0452: Visual highlighting extends into virtual text prop Problem: Visual highlighting extends into virtual text prop. Solution: Do not highlight what isn't actually selected. Fix ordering of stored text props. https://github.com/vim/vim/commit/6eda17d881c9b2880ccb2a4d11951939a58f233d Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | vim-patch:9.0.0183: extra space after virtual text when 'linebreak' is setIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Extra space after virtual text when 'linebreak' is set. Solution: Do not count virtual text when getting linebreak value. (closes vim/vim#10884) https://github.com/vim/vim/commit/52de3a8d3943520bbd4e5e40a4c43fcc7182dac0 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | vim-patch:9.0.0178: cursor position wrong with virtual text before TabIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor position wrong with virtual text before Tab. Solution: Use the byte length, not the cell with, to compare the column. Correct tab size after text prop. (closes vim/vim#10866) https://github.com/vim/vim/commit/e428fa04a758cc87ea580c856a796e58e407504b Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | vim-patch:9.0.0179: cursor pos wrong with wrapping virtual text in empty lineIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor position wrong with wrapping virtual text in empty line. Solution: Adjust handling of an empty line. (closes vim/vim#10875) https://github.com/vim/vim/commit/49a90792d950c51608d0459ef8699fe921070718 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * | | vim-patch:9.0.0143: cursor positioned after virtual text in empty lineIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor positioned after virtual text in empty line. Solution: Keep cursor in the first column. (closes vim/vim#10786) https://github.com/vim/vim/commit/afd2aa79eda3fe69f2e7c87d0b9b4bca874f386a
| * | | fix(ui): fix multi-byte characters highlight in virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes insert cursor position around virtual text vim-patch:9.0.0132: multi-byte characters in virtual text not handled correctly Problem: Multi-byte characters in virtual text not handled correctly. Solution: Count screen cells instead of bytes. https://github.com/vim/vim/commit/09ff4b54fb86a64390ba9c609853c6410ea6197c
| * | | fix(ui): adjust the cursor when inserting virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credit to: Jesse Bakker https://github.com/neovim/neovim/pull/20130#issuecomment-1369652743 Co-authored-by: Jesse Bakker <github@jessebakker.com>
| * | | vim-patch:9.0.0130: cursor position wrong when inserting around virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor position wrong when inserting around virtual text. Solution: Update the cursor position properly. https://github.com/vim/vim/commit/1f4ee19eefecd8f70b7cbe8ee9db8ace6352e23e Co-authored-by: tom-anders <13141438+tom-anders@users.noreply.github.com>
| * | | fix(ui): fix cursor position with multiple inline virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch9.0.0121: cannot put virtual text after or below a line Problem: Cannot put virtual text after or below a line. Solution: Add "text_align" and "text_wrap" arguments. https://github.com/vim/vim/commit/b7963df98f9dbbb824713acad2f47c9989fcf8f3 This only patches the fix, not the whole thing.
| * | | feat(ui): inline virtual textIbby2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:9.0.0067: cannot show virtual text Problem: Cannot show virtual text. Solution: Initial changes for virtual text support, using text properties. https://github.com/vim/vim/commit/7f9969c559b51446632ac7e8f76cde07e7d0078d vim-patch:9.0.0116: virtual text not displayed if 'signcolumn' is "yes" Problem: Virtual text not displayed if 'signcolumn' is "yes". Solution: Set c_extra and c_final to NUL. https://github.com/vim/vim/commit/711483cd1381a4ed848d783ae0a6792d5b04447b Co-authored-by: bfredl <bjorn.linse@gmail.com>
* | | | fix(redraw): overwrite double-width char with virt_text properly (#23708)zeertzjq2023-05-22
|/ / /
* | | fix(highlight): remove unnecessary assignment to char_attr for 'spell' (#23713)luukvbaal2023-05-22
| | |
* | | fix(api): nvim_get_hl should return default flagNull Chilly2023-05-22
| | |
* | | ci: enable colors by default when testingdundargoc2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test colors were disabled in be7290d214673287218dcbd1a6730961cc067190 due to color codes interfering with the logs. I believe the solution to disable colors is too aggressive. Reading raw logs isn't common compared to reading CI results from the github UI. We should optimize the most common use case. It is also possible to interpret the colors codes in logs from neovim with a plugin that interprets ansi escape sequences.
* | | refactor(vim.secure): move to lua/secure.cLewis Russell2023-05-22
|/ /
* | Merge pull request #23712 from famiu/refactor/test/buf0bfredl2023-05-22
|\ \ | |/ |/| test: don't unnecessarily specify win/buf for nvim_(get|set)_option_value
| * test: don't unnecessarily specify win/buf for `nvim_(get|set)_option_value`Famiu Haque2023-05-22
|/ | | | `nvim_(get|set)_option_value` pick the current buffer / window by default for buffer-local/window-local (but not global-local) options. So specifying `buf = 0` or `win = 0` in opts is unnecessary for those options. This PR removes those to reduce code clutter.
* build: move luarocks and rocks installation to main builddundargoc2023-05-21
| | | | | | This will ensure luacheck and busted are only installed when they're actually needed. This cuts total build time by over 50%. Closes https://github.com/neovim/neovim/issues/22797.
* Merge pull request #23670 from famiu/refactor/deprecate_opt_apibfredl2023-05-21
|\ | | | | refactor(options): deprecate nvim[_buf|_win]_[gs]et_option
| * refactor(options): deprecate nvim[_buf|_win]_[gs]et_optionLewis Russell2023-05-21
| | | | | | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: famiu <famiuhaque@protonmail.com>
* | fix(treesitter): update highlights for query (#23699)Christian Clason2023-05-21
| | | | | | captures for `; extends` and `; inherits`
* | fix(redraw): multibyte characters are wrapped at the end of a line (#23696)luukvbaal2023-05-21
| | | | | | | | | | | | Problem: Multibyte characters may be wrapped at the end of a line when 'statuscolumn' and 'spell' are set. Solution: Update line pointerdiff "v" before fetching the line pointer after evaluating 'statuscolumn'.