aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | get_str_line: Simplify growarray usageFabian Viöl2021-04-30
| | | | | |
| * | | | | Fix documentation typos for msg_scroll_flushFabian Viöl2021-04-29
| | | | | |
| * | | | | get_str_line: Use heap instead of stackFabian Viöl2021-04-29
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The stack allocated buffer does introduce an arbitrary limit, to the length of the line. Previously, if the line was too long, it might be catched by a stack smash canary or resulted into a crash. This is not guaranteed though, and thus could result into undefined behavior. To mitigate this, an dynamic allocated buffer is replacing the stack allocated buffer, with the initial capacity of the copied line.
* | | | | signs: fix overflow during adjustment on Windows (#14472)statiolake2021-05-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, `new_lnum + MAXLNUM` causes overflow and as a result the line number of that sign becomes invalid negative number. This occurs when the `set signcolumn=yes`, in other words `signcolumn` is not `auto` and the sign column is less than 2 columns. The related change was made in the commit f2ed7605da45eb79a4f7bb89fb19f680fb5a4927. Originally the above addition is only executed if `amount != MAXLNUM`, so reintroducing this check fixes the bug and will hardly produces a new bug. Fixes https://github.com/neovim/neovim/issues/14460
* | | | | fix: make nvim_win_get_number() return win number (#14470)Julian Berman2021-05-01
| | | | | | | | | | | | | | | Closes https://github.com/neovim/neovim/issues/14467
* | | | | docs: Treesitter (#13260)TJ DeVries2021-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc & fixes: Generate treesitter docs * fixup to treesitter-core * docs(treesitter): fix docs for most functions Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* | | | | Merge pull request #14380 from bfredl/virtcolBjörn Linse2021-05-01
|\ \ \ \ \ | | | | | | | | | | | | decorations: right_align and win_col
| * | | | | decorations: right_align and win_colBjörn Linse2021-05-01
| |/ / / /
* / / / / startup: do "syntax enable" instead of "syntax on"Björn Linse2021-04-30
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | "syntax on" overwrites existing highlight groups, while "syntax enable" just sets missing groups. This change prevents user defined highlights in init.vim/lua to get overwritten. The manual recommends "syntax enable" for new configurations anyway, "on" command was probably used as it is the implicit default.
* | / / ui_compositior: handle multiple displayed floats in the same tickBjörn Linse2021-04-26
| |/ / |/| | | | | | | | | | | problem: the order of non-focuesed float opened before focused float is wrong (sunjon) solution: check curwin and correct the order (bfredl)
* | | doc : fixing missing @return in nvim_open_term docMichael Bleuez2021-04-24
| | |
* | | vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and ↵Jan Edmund Lazo2021-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'splitright' (#14398) Problem: :mksession uses current value of 'splitbelow' and 'splitright' even though "options" is not in 'sessionoptions'. (Maxim Kim) Solution: Save and restore the values, instead of setting to the current value. (closes vim/vim#8119) https://github.com/vim/vim/commit/0995c81f2ffe276669daa004f7778ecc6f5ee09d Patch v8.2.1682 is not ported. Replace "goto fail;" with "return FAIL;".
* | | lua: make vim.cmd an alias of vim.api.nvim_exec() (#14401)Shadman2021-04-22
| | | | | | | | | | | | | | | Previously vim.cmd was an alias of nvim_command(). From now on it is an alias of nvim_exec().
* | | Merge pull request #14411 from seandewar/vim-8.2.1588Jan Edmund Lazo2021-04-21
|\ \ \ | | | | | | | | vim-patch:8.2.1588 - port `prompt_getprompt()`
| * | | fix(oldtest): fix assert_match() for :buffers tSean Dewar2021-04-21
| | | | | | | | | | | | | | | | | | | | Previous pattern could cause test to fail if ":buffers t" reported "1 second ago".
| * | | vim-patch:8.2.1588: cannot read back the prompt of a prompt bufferSean Dewar2021-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot read back the prompt of a prompt buffer. Solution: Add prompt_getprompt(). (Ben Jackson, closes vim/vim#6851) https://github.com/vim/vim/commit/077cc7aa0e0c431e97795612374fe17fe7c88803 Updated prompt_getprompt() doc to https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e and removed mention of method syntax usage (not supported by Nvim).
| * | | oldtest: port test_prompt_buffer.vimSean Dewar2021-04-21
| | | | | | | | | | | | | | | | | | | | Included from before v8.2.1588. Required for v8.2.1588. Many tests use stuff like term_sendkeys() which is N/A, so are skipped.
| * | | eval: port tv_get_buf_from_arg()Sean Dewar2021-04-21
| |/ / | | | | | | | | | | | | | | | | | | | | | Cherry-picked from v8.2.1562, but uses Nvim's tv_check_str_or_nr(). Required for v8.2.1588. It isn't used for f_bufnr() to avoid a double error message if the first argument isn't a number or string similiar to what's seen in Vim.
* | | api: fix nvim_exec() silencing behaviour (#14413)Shadman2021-04-21
| | | | | | | | | | | | | | | Previously nvim_exec would silent output no matter whether output is true or false. Now output is only silent and captured when output is true.
* | | win/package: remove cat,tidy (#14402)Jan Edmund Lazo2021-04-20
|/ / | | | | | | | | | | | | | | | | | | | | Neovim should not bundle external tools that are not needed in the runtime environment. cat.exe is meant for tests only. Install a mingw/msys2/busybox environment which bundle cat.exe. tidy.exe was never used in tests and is not required in Neovim runtime. busybox and tidy.exe can be installed via scoop. Ref: https://github.com/neovim/neovim/issues/14078
* | Merge pull request #12323 from da-x/orphaned-signsMatthieu Coudron2021-04-18
|\ \ | | | | | | Handle 'orphaned signs' on line deletion for signcolumn >= 2
| * | test_signs.vim: adjust for sign removal on line deletionDan Aloni2021-04-17
| | |
| * | Handle 'orphaned signs' on line deletion for signcolumn >= 2Dan Aloni2021-04-17
| | |
* | | vim-patch:8.2.2773: PSL filetype not recognized (#14389)Jan Edmund Lazo2021-04-17
| | | | | | | | | | | | | | | Problem: PSL filetype not recognized. Solution: Add a filetype pattern. (Daniel Kho, closes vim/vim#8117) https://github.com/vim/vim/commit/112a006417a0d4700ff39ddba3bb5e985ae9770f
* | | Merge pull request #14385 from chentau/extmark_deleteBjörn Linse2021-04-17
|\ \ \ | | | | | | | | Extmarks: remove `curbuf->deleted_bytes2` from `op_delete`
| * | | extmarks: remove curbuf->deleted_bytes2 from op_deletechentau2021-04-16
| | | |
* | | | Merge pull request #14365 from chentau/extmark_delbytes_moveBjörn Linse2021-04-17
|\ \ \ \ | |_|/ / |/| | | Extmarks: flush curbuf->deleted_bytes2 after calling do_move
| * | | flush curbuf->deleted_bytes2 after calling do_movechentau2021-04-14
| |/ /
* | | Merge pull request #14355 from janlazo/vim-8.1.2313Jan Edmund Lazo2021-04-15
|\ \ \ | | | | | | | | vim-patch:8.1.2313,8.2.{2046,2769}
| * | | vim-patch:8.2.2769: Modula-3 config files are not recognizedJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Modula-3 config files are not recognized. Solution: Add filetype patterns. (Doug Kearns) https://github.com/vim/vim/commit/6bc00699c5049c40761d212bef1b490e2af7944c
| * | | vim-patch:8.1.2313: debugging where a delay comes from is not easyJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay(). https://github.com/vim/vim/commit/eda1da0c9a8db1400649629117e7d248c07735f7
| * | | vim-patch:8.2.2046: some test failures don't give a clear errorJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Some test failures don't give a clear error. Solution: Use assert_match() and assert_fails() instead of assert_true(). (Ken Takata, closes vim/vim#7368) https://github.com/vim/vim/commit/5dc4e2f883896c99ebe83355822ac6067970b031
* | | | vim-patch:8.2.2764: memory leak when default function argument is allocatedJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Memory leak when default function argument is allocated. Solution: Free the expression result. https://github.com/vim/vim/commit/b47bed2f7ada4dfae78f76f27473b83507e40315
* | | | vim-patch:8.2.2761: using "syn include" does not work properlyJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using "syn include" does not work properly. Solution: Don't add current_syn_inc_tag to topgrp. (Jaehwang Jerry Jung, closes vim/vim#8104) https://github.com/vim/vim/commit/2e240bd428c0033d16f201d7f837636412358199 Cherry-pick AssertHighlightGroups from patch v8.2.2068.
* | | | vim-patch:8.2.0265: "eval" after "if 0" doesn't check for following commandJan Edmund Lazo2021-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: "eval" after "if 0" doesn't check for following command. Solution: Add "eval" to list of commands that check for a following command. (closes vim/vim#5640) https://github.com/vim/vim/commit/a76b31542e1d83b7d2fe7378439912e800a4d0f6
* | | | ex_cmds: port :evalJan Edmund Lazo2021-04-15
|/ / / | | | | | | | | | | | | Cherry-picked from patch v8.1.1807. Required for patch v8.2.2761.
* | | Merge pull request #14358 from bfredl/decodecoBjörn Linse2021-04-15
|\ \ \ | |/ / |/| | decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
| * | decoration: Clean up duplicate Decoration attributes + bonus hl_eol flagBjörn Linse2021-04-14
| | |
* | | Merge pull request #14318 from chentau/extmark_luadoBjörn Linse2021-04-13
|\ \ \ | | | | | | | | extmark: splice extmarks on :luado
| * | | extmark: splice extmarks on :luadochentau2021-04-12
| | | |
* | | | float: add "solid" border style (#14310)Marco Hinz2021-04-12
| |/ / |/| | | | | | | | | | | | | | It looks solid with the default `FloatBorder` group. If you set the bgcolor of FloatBorder to the same color as for FloatNormal, you effectively get an "1-cell padding".
* | | test/old: ':execute' does not suppress range errorJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | :2,1> should trigger backwards range error but it is suppressed for inccomand. :execute "2,1>" does not suppress the error.
* | | vim-patch:8.1.2416: loading menus sets v:errmsgJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | Problem: Loading menus sets v:errmsg. Solution: Avoid setting v:errmsg and add a test for that. (Jason Franklin) https://github.com/vim/vim/commit/e24c5b3332b453175e5f73423884087a4aef1247
* | | vim-patch:8.1.1841: no test for Ex shift commandsJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: No test for Ex shift commands. Solution: Add a test. (Dominique Pelle, closes vim/vim#4801) https://github.com/vim/vim/commit/d5e3cc11d391f3aa80bf66f91001f11a3a145b43 Comment out some tests because of Neovim inccomand.
* | | vim-patch:8.2.1920: listlbr test fails when run after another testJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | Problem: Listlbr test fails when run after another test. Solution: Add test separately to list of test targets. https://github.com/vim/vim/commit/cf4d454df0619ee41ef40e7e91fce3fb061d7d5b
* | | vim-patch:8.2.2050: search test contains unneeded sleepsJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | | | | Problem: Search test contains unneeded sleeps. Solution: Rename the function, remove sleeps. (Christian Brabandt, closes vim/vim#7369) https://github.com/vim/vim/commit/6bed0dbc8500be3ea751cc527a6ee89ca073a4d1
* | | vim-patch:8.2.0409: search test leaves file behindJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Search test leaves file behind. Solution: Delete the file. Also use Check commands. https://github.com/vim/vim/commit/b68df220c5278365792b8f94d8d6f34d329b7746 Reorder tests based on test_search.vim in patch v8.2.0409.
* | | vim-patch:8.2.2319: "exptype_T" can be read as "expected type"Jan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | | | | | | | Problem: "exptype_T" can be read as "expected type". Solution: Rename to "exprtype_T", expression type. https://github.com/vim/vim/commit/657137ca487c60d63989236115115161def270a5 Vim9 changes omitted.
* | | vim-patch:8.2.0069: ETYPE_ is used for two different enumsJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | Problem: ETYPE_ is used for two different enums. Solution: Rename one to use EXPR_. https://github.com/vim/vim/commit/87396072c5c468f0c129e4ec7cd944ac897b7752
* | | vim-patch:8.2.0045: script test failsJan Edmund Lazo2021-04-11
| | | | | | | | | | | | | | | | | | Problem: Script test fails. Solution: For numbers "is" and "isnot" work like "==" and "!=". https://github.com/vim/vim/commit/ec57ec692eb228ee061824a190d7c451f029c430