aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
Commit message (Collapse)AuthorAge
...
* | | | | Merge pull request #17672 from lewis6991/refactorproviderbfredl2022-03-11
|\ \ \ \ \ | |_|/ / / |/| | | | refactor(decorations): move provider code
| * | | | refactor(decorations): unglobal decor_providersLewis Russell2022-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | Now all the decoration provider code is in one place, decor_providers no longer need to be global.
| * | | | refactor(decorations): move provider codeLewis Russell2022-03-10
| |/ / / | | | | | | | | | | | | Move decoration provider code to a separate file.
* | | | vim-patch:8.2.3950: going beyond the end of the line with /\%Vzeertzjq2022-03-10
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Going beyond the end of the line with /\%V. Solution: Check for valid column in getvcol(). https://github.com/vim/vim/commit/94f3192b03ed27474db80b4d3a409e107140738b
* | | | vim-patch:8.2.3949: using freed memory with /\%Vzeertzjq2022-03-10
|/ / / | | | | | | | | | | | | | | | Problem: Using freed memory with /\%V. Solution: Get the line again after getvvcol(). https://github.com/vim/vim/commit/4c13e5e6763c6eb36a343a2b8235ea227202e952
* | | Merge pull request #17653 from dundargoc/chore/lgtmzeertzjq2022-03-10
|\ \ \ | | | | | | | | fix lgtm warnings
| * | | chore(lgtm): fix "empty block without comment" warningsDundar Göc2022-03-09
| | | |
* | | | chore: fix typos (#17331)dundargoc2022-03-10
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Hongyi Lyu <hongyi.lyu95@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: notomo <notomo.motono@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | | | chore(regexp.c): correctly align META_flags (#17668)zeertzjq2022-03-10
| | | |
* | | | Merge pull request #16336 from kylo252/vim-8.1.2005zeertzjq2022-03-10
|\ \ \ \ | | | | | | | | | | vim-patch:8.1.{2005,2010}: the regexp.c file is too big
| * | | | vim-patch:8.1.2005: the regexp.c file is too bigkylo2522022-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The regexp.c file is too big. Solution: Move the backtracking engine to a separate file. (Yegappan Lakshmanan, closes vim/vim#4905) https://github.com/vim/vim/commit/6d7d7cf750bca5d641e464f6a3af5ee5b99a5ac8 vim-patch:8.1.2010: new file uses old style comments Problem: New file uses old style comments. Solution: Change to new style comments. (Yegappan Lakshmanan, closes vim/vim#4910) https://github.com/vim/vim/commit/9490b9a61cf1f1f3fa9758663a33124ea9f71c87
* | | | | feat(api): relax statusline fillchar width checkzeertzjq2022-03-10
|/ / / / | | | | | | | | | | | | Treat fillchar as single-width even if it isn't.
* | | | Merge pull request #17640 from lewis6991/virttextfixbfredl2022-03-09
|\ \ \ \ | | | | | | | | | | fix(extmarks): fix signs
| * | | | fix(extmarks): fix signsLewis Russell2022-03-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't add sign extmarks to state->active. Instead when drawing signs, perform a full line scan for sign marks. This allows decor_redraw_line to be moved back inside the `!number_only` block in screen.c, which prevents decor scans when redrawing the number column when 'relativenumber' is set. Fixes: #17638
* | | | | Merge pull request #17502 from zeertzjq/vim-8.1.0999zeertzjq2022-03-09
|\ \ \ \ \ | |_|/ / / |/| | | | vim-patch:8.1.0999: use register one too often and not properly tested
| * | | | vim-patch:8.1.0999: use register one too often and not properly testedzeertzjq2022-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Use register one too often and not properly tested. Solution: Do not always use register one when specifying a register. (closes vim/vim#4085) Add more tests. https://github.com/vim/vim/commit/9d7fdd403a3a9ee0d008b6dcbcd2ecc9ec0f57b7
| * | | | refactor(ops): use op_yank_reg() instead of op_yank() when deletingzeertzjq2022-03-09
| | | | | | | | | | | | | | | | | | | | Needed for Vim patch 8.1.0999.
* | | | | vim-patch:8.1.0748: using sprintf() instead of semsg()VVKot2022-03-09
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using sprintf() instead of semsg(). Solution: Use semsg(). Fix bug with E888. (Ozaki Kiichi, closes vim/vim#3801) https://github.com/vim/vim/commit/1be45b2ea76ae2e39817a98a584d4d6cbb983a7b vim-patch:8.1.0136: Lua tests don't cover new features Problem: Lua tests don't cover new features. Solution: Add more tests. (Dominique Pelle, closes vim/vim#3130) https://github.com/vim/vim/commit/2f362bf7f9acc9ec87799d1e41bf0ae7712d1f7a vim-patch:8.1.0139: Lua tests fail on some platforms Problem: Lua tests fail on some platforms. Solution: Accept a hex number with and without "0x". (Ken Takata, closes vim/vim#3137) https://github.com/vim/vim/commit/a8a60d0c6b292216e55f005cf9637789a771d34b vim-patch:8.1.0164: luaeval('vim.buffer().name') returns an error Problem: luaeval('vim.buffer().name') returns an error. Solution: Return an empty string. (Dominique Pelle, closes vim/vim#3167) https://github.com/vim/vim/commit/fe08df452af10db8a24dbeb1bd9ef09492a4bc66 vim-patch:8.1.0300: the old window title might be freed twice Problem: The old window title might be freed twice. (Dominique Pelle) Solution: Do not free "oldtitle" in a signal handler but set a flag to have it freed later. https://github.com/vim/vim/commit/d8f0cef2bdbdc15d7906f991725e09e67c97cf7e vim-patch:8.1.0672: the Lua interface doesn't know about v:null Problem: The Lua interface doesn't know about v:null. Solution: Add Lua support for v:null. (Uji, closes vim/vim#3744) https://github.com/vim/vim/commit/9067cd6cdfdc0bb869aa7f5d2a6c607ea8255239
* | | | Merge pull request #17622 from ↵zeertzjq2022-03-09
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | dundargoc/refactor/clang-tidy/remove-redundant-casts refactor/clang tidy/remove redundant casts
| * | | | refactor: remove redundant castsDundar Göc2022-03-06
| | | | |
* | | | | vim-patch:8.2.0997: cannot execute a register containing line continuationzeertzjq2022-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot execute a register containing line continuation. Solution: Concatenate lines where needed. (Yegappan Lakshmanan, closes vim/vim#6272) https://github.com/vim/vim/commit/856c1110c1cf0d6e44e387b70732ca4b4c8ef0f2 According to #2542 the "Future:" part was removed intentionally. Use size_t in more places to reduce type casts.
* | | | | fix(line continuation): set growsize to correct value (#17655)Sean Dewar2022-03-08
| | | | | | | | | | | | | | | Using MAX always sets growsize to 8000, unless ga_len is larger...
* | | | | fix: do not pass aucmd to the callback (#17650)TJ DeVries2022-03-08
| | | | |
* | | | | chore(aucmd): remove left-over debug log (#17649)Christian Clason2022-03-08
| | | | |
* | | | | feat(api): autocmd `group` can be either name or id (#17559)Dhruv Manilawala2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(api): `group` can be either string or int This affects the following API functions: - `vim.api.nvim_create_autocmd` - `vim.api.nvim_get_autocmds` - `vim.api.nvim_do_autocmd` closes #17552 * refactor: add two maps for fast lookups * fix: delete augroup info from id->name map When in "stupid_legacy_mode", the value in name->id map would be updated to `AUGROUP_DELETED`, but the entry would still remain in id->name. This would create a problem in `augroup_name` function which would return the name of the augroup instead of `--DELETED--`. The id->name map is only used for fast loopup in `augroup_name` function so there's no point in keeping the entry of deleted augroup in it. Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
* | | | | vim-patch:8.2.4520: using wrong highlight for cursor line numberzeertzjq2022-03-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using wrong highlight for cursor line number. Solution: Take filler lines into account when using CursorLineNr. (closes vim/vim#9897) https://github.com/vim/vim/commit/127969cf98000a760826ca3a0f3781a8b79522f1
* | | | | fix(lua): don't use nlua_error when exiting earlybfredl2022-03-07
| |/ / / |/| | | | | | | | | | | Screen state is not initialized yet. Print directly to stderr instead.
* | | | Merge pull request #17621 from bfredl/luaindexbfredl2022-03-07
|\ \ \ \ | | | | | | | | | | refactor(lua): make vim submodule lazy loading declarative
| * | | | refactor(lua): make vim submodule lazy loading declarativebfredl2022-03-07
| |/ / / | | | | | | | | | | | | | | | | This will allow us to also use the same logic for lua threads and processes, later.
* | | | Merge pull request #17630 from kchibisov/fix-underline-regressionJames McCoy2022-03-06
|\ \ \ \ | | | | | | | | | | fix(api): highlight attribute for underline
| * | | | fix(api): highlight attribute for underlineKirill Chibisov2022-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes regression introduced in c365de1 when checking for highlight attribute for underline was returning '0' when it was present Fixes #17624.
* | | | | vim-patch:8.2.4513: window-local directory is not applied if 'acd' failszeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Window-local directory is not applied if 'acd' fails. Solution: Don't call do_autochdir(). (closes vim/vim#9891) https://github.com/vim/vim/commit/b29ae159777028bb3266835b55716749ab0515be
* | | | | vim-patch:8.2.4060: win_execute() slow on systems where getcwd()/chdir() is slowzeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: win_execute() is slow on systems where getcwd() or chdir() is slow. (Rick Howe) Solution: Avoid using getcwd() and chdir() if no local directory is used and 'acd' is not set. (closes vim/vim#9504) https://github.com/vim/vim/commit/d6f27c66cca32b93fcf8024b1bad1618946bbbea
* | | | | vim-patch:8.2.3920: restoring directory after using another window is ↵zeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inefficient Problem: Restoring directory after using another window is inefficient. Solution: Only restore the directory for win_execute(). Apply 'autochdir' only when needed. https://github.com/vim/vim/commit/90c317f2246a7fb4bd4e3feb0778b53627bc9fad
* | | | | vim-patch:8.2.3745: autochdir test fails without the +channel featurezeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Autochdir test fails without the +channel feature. Solution: Remove the ch_logfile() call. (Dominique Pellé, closes vim/vim#9281) https://github.com/vim/vim/commit/f661cee847d2c17652b0ad0d703d2e3ac8610265
* | | | | vim-patch:8.2.3739: in wrong directory when using win_execute() with 'acd' setzeertzjq2022-03-07
| |/ / / |/| | | | | | | | | | | | | | | | | | | Problem: In wrong directory when using win_execute() with 'acd' set. Solution: Restore the directory when returning to the window. (closes vim/vim#9276) https://github.com/vim/vim/commit/dea4a616376c6500894c16e26057ce16d7ef9f0e
* | | | refactor(signcol): smarter invalidation (#17533)Lewis Russell2022-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously b_signcols was invalidated whenever a sign was added/removed or when a buffer line was added/removed. This change introduces a sentinel linenr_T into the buffer state which is a line number used to determine the signcolumn. With this information, we can invalidate the signcolumn less often. Now the signcolumn is only invalidated when a sign or line at the sentinel line number is removed.
* | | | feat(api): add 'buffer' argument to nvim_get_autocmds (#17594)Gregory Anders2022-03-06
|/ / / | | | | | | | | | | | | This enables retrieving autocommands defined in the given buffers. Under the hood this simply translates the buffer numbers into '<buffer=%d>' patterns.
* | | Merge pull request #16897 from lewis6991/signsbfredl2022-03-06
|\ \ \ | | | | | | | | feat(decorations): support signs
| * | | feat(decorations): support signsLewis Russell2022-03-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following options to extmarks: - sign_text - sign_hl_group - number_hl_group - line_hl_group - cursorline_hl_group Note: ranges are unsupported and decorations are only applied to start_row
* | | | Merge pull request #17589 from kchibisov/add-dashed-dotted-underlineJames McCoy2022-03-05
|\ \ \ \ | | | | | | | | | | Add support for double, dashed, and dotted underlines
| * | | | fix: bounds check for underdotKirill Chibisov2022-03-05
| | | | |
| * | | | feat(tui): add support for `CSI 4 : [2,4,5] m`Kirill Chibisov2022-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit finishes support for colored and styled underlines adding `CSI 4 : [2,4,5] m` support providing double, dashed, and dotted underlines Fixes #17362.
* | | | | Merge pull request #17538 from dundargoc/refactor/bugprone-signed-char-misusebfredl2022-03-05
|\ \ \ \ \ | | | | | | | | | | | | refactor: fix clang-tidy bugprone-signed-char-misuse warnings
| * | | | | refactor: fix clang-tidy bugprone-signed-char-misuse warningsDundar Göc2022-03-04
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Prefer to declare variables with correct type instead of explicit casts wherever possible.
* / | | | refactor(lua): move only runtime lua file in src/ to runtime/luabfredl2022-03-04
|/ / / / | | | | | | | | | | | | reorganize so that initialization is done in lua
* | | | chore(autocmd): move comment to the right placezeertzjq2022-03-04
| | | |
* | | | fix(autocmd): clean up autocmds only when needed (#17593)Jaehwang Jung2022-03-04
| | | |
* | | | Merge pull request #17567 from bfredl/preloadbfredl2022-03-03
|\ \ \ \ | | | | | | | | | | refactor(lua): regularize builtin modules, phase 1
| * | | | refactor(lua): reorganize builtin modules, phase 1bfredl2022-03-03
| |/ / /