aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | | fix(api): allow empty list for cterm in nvim_set_hlChristian Clason2022-02-17
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: when accessing `nvim_set_hl` from Lua, empty tables are converted to empty lists, not dictionaries, resulting in an error for :lua vim.api.nvim_set_hl(0, "Comment", { cterm = {} }) Workaround: add an empty array as a special case when checking `dict->cterm.type` and just set `cterm_mask_provided`. (Proper solution: handle this in `gen_api_dispatch.lua`.)
* | | | Merge pull request #17421 from lewis6991/hl0_clearbfredl2022-02-17
|\ \ \ \ | |_|_|/ |/| | | fix(highlight): global ns improvements
| * | | feat(highlight): support color names for ctermLewis Russell2022-02-16
| | | |
| * | | fix(highlight): allow globals to be clearedLewis Russell2022-02-16
| | | | | | | | | | | | | | | | | | | | | | | | - and reduce heap allocations Fixes #17420
* | | | Merge pull request #17431 from zeertzjq/vim-8.2.4345zeertzjq2022-02-17
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.4345
| * | | | vim-patch:8.2.4345: <amatch> is expanded like a file name for DirChangedPrezeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: <amatch> is expanded like a file name for DirChangedPre. Solution: Do not expand <amatch>. (closes vim/vim#9742) Also for the User event. https://github.com/vim/vim/commit/f6246f51e3d85a982a899b4a8fd9045a5e23016f
* | | | | Merge pull request #17429 from zeertzjq/vim-8.2.4400zeertzjq2022-02-17
|\ \ \ \ \ | |/ / / / |/| | | | vim-patch:8.2.{4392,4394,4400}
| * | | | vim-patch:8.2.4400: MS-Windows: cannot use the mouse in the console with VIMDLLzeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: cannot use the mouse in the console with VIMDLL. Solution: use add_char2buf() instead of fix_input_buffer(). (closes vim/vim#9784, closes vim/vim#9769) https://github.com/vim/vim/commit/646bb7247ad6051aca223a2b04b008f682cdb57f N/A patches for version.c: vim-patch:8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong Problem: MS-Windows with VIMDLL: Escaping CSI is wrong. Solution: Put back #ifdef. (Ken Takata, closes vim/vim#9769) https://github.com/vim/vim/commit/64d95cfc56406858a05032c6a134f1e08fe2ca78 vim-patch:8.2.4394: UTF8 select mode test fails on MS-Windows Problem: UTF8 select mode test fails on MS-Windows. Solution: Revert the #ifdef change. https://github.com/vim/vim/commit/9fdde7992ab4c21517f447ca3d651b9ff4a770e8
* | | | | Merge pull request #17363 from zeertzjq/dirchangedprezeertzjq2022-02-17
|\ \ \ \ \ | |/ / / / |/| | | | feat(events): add DirChangedPre
| * | | | feat(events): add DirChangedPrezeertzjq2022-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Nvim, like DirChanged, this also triggers when switching windows. This marks Vim patch 8.2.4335 as ported. vim-patch:8.2.4335: no autocommand event triggered before changing directory Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes vim/vim#9721) https://github.com/vim/vim/commit/28e8f73ae2d90009fd62cd60f97c2643ba44de68
* | | | | Merge pull request #16678 from lewis6991/runtime_file_errbfredl2022-02-16
|\ \ \ \ \ | | | | | | | | | | | | fix(api): re-route nvim_get_runtime_file errors
| * | | | | fix(api): re-route nvim_get_runtime_file errorsLewis Russell2022-02-15
| | |/ / / | |/| | | | | | | | | | | | | This allows nvim_get_runtime_file to be properly used via pcall
* | | | | refactor: remove NULL check that is always truezeertzjq2022-02-16
| | | | |
* | | | | docs: minor changes related to mapping descriptionzeertzjq2022-02-16
| | | | |
* | | | | feat(mappings): considering map description when filtering (#17423)Shadman2022-02-16
| | | | |
* | | | | Merge pull request #17422 from shadmansaleh/enhance/mapszeertzjq2022-02-16
|\ \ \ \ \ | |/ / / / |/| | | | fix: <Nop> not shown in :map commands
| * | | | fix: <Nop> not shown in :map commandsshadmansaleh2022-02-16
| | | | |
| * | | | chore: improve lua keymaps internal representation schemeshadmansaleh2022-02-16
| | | | |
* | | | | fix(api): validate command names in nvim_add_user_command (#17406)Gregory Anders2022-02-15
|/ / / / | | | | | | | | | | | | This uses the same validation used when defining commands with `:command`.
* | | | vim-patch:8.2.4388: dead code in op_insert()zeertzjq2022-02-15
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Dead code in op_insert(). Solution: Remove condition and else block. (closes vim/vim#9782) https://github.com/vim/vim/commit/7745f14ef324a7134b2f26a47451cf5032f44b89
* | | | Merge pull request #17411 from zeertzjq/vim-8.2.3820zeertzjq2022-02-15
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.{3820,3823}: "vrc" does not replace composing characters
| * | | | vim-patch:8.2.3820: "vrc" does not replace composing characterszeertzjq2022-02-15
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: "vrc" does not replace composing characters, while "rc" does. Solution: Check the byte length including composing characters. (closes vim/vim#9351) https://github.com/vim/vim/commit/8ee6028de3daa9af9e5f90fa9e583ff407bee04f vim-patch:8.2.3823: test for visual replace is in wrong function Problem: Test for visual replace is in wrong function. Solution: Move it to another function. https://github.com/vim/vim/commit/6ecf58b0d7d9b8fbba780d19d2e6c0f227df715b
* / | | vim-patch:8.2.4154: ml_get error when exchanging windows in Visual modezeertzjq2022-02-15
|/ / / | | | | | | | | | | | | | | | Problem: ml_get error when exchanging windows in Visual mode. Solution: Correct end of Visual area when entering another buffer. https://github.com/vim/vim/commit/05b27615481e72e3b338bb12990fb3e0c2ecc2a9
* | | test(old): reorder test_functions.vim and test_visual.vim to match Vimzeertzjq2022-02-15
| | |
* | | Merge pull request #17402 from seandewar/vim-8.2.4120Sean Dewar2022-02-15
|\ \ \ | | | | | | | | vim-patch:8.2.{3073,4120,4151,4152}
| * | | vim-patch:8.2.4152: block insert with double wide character failsSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Block insert with double wide character fails. Solution: Adjust the expected output. https://github.com/vim/vim/commit/fc6ccebea668c49e9e617e0657421b6a8ed9df1e
| * | | vim-patch:8.2.4151: reading beyond the end of a lineSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Reading beyond the end of a line. Solution: For block insert only use the offset for correcting the length. https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dc
| * | | vim-patch:8.2.4120: block insert goes over the end of the lineSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Block insert goes over the end of the line. Solution: Handle invalid byte better. Fix inserting the wrong text. https://github.com/vim/vim/commit/9f8c304c8a390ade133bac29963dc8e56ab14cbc
| * | | vim-patch:8.2.3073: when cursor is move for block append wrong text is insertedSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When cursor is move for block append wrong text is inserted. Solution: Calculate an offset. (Christian Brabandt, closes vim/vim#8433, closes vim/vim#8288) https://github.com/vim/vim/commit/4067bd3604215b48e4b4201e28f9e401b08418e4
| * | | test(old): cherry-pick test_visual changes from v8.2.2945Sean Dewar2022-02-14
| | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/59b262362f26b3aaea1eeb0078adc33eed59863e
| * | | test(old): cherry-pick test_visual changes from v8.2.2901Sean Dewar2022-02-14
| | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/3e72dcad8b752a42b6eaf71213e3f5d534175256
| * | | test(old): cherry-pick test_visual changes from v8.2.0369Sean Dewar2022-02-14
| | |/ | |/| | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/1671f4488105ee12a6a8558ae351436c26ab55fc Omit Test_AAA_start_visual_mode_with_count comment change as it hasn't been ported yet.
* / | vim-patch:8.2.4343: when reloading not all properties are detectedzeertzjq2022-02-14
|/ / | | | | | | | | | | | | | | Problem: When reloading not all properties are detected. Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes vim/vim#9579) https://github.com/vim/vim/commit/8196e94a8b72ed8618605cb66615571313097d78 Cherry-pick some test changes from patch 8.1.1826.
* | Merge pull request #17374 from zeertzjq/vim-8.2.3510zeertzjq2022-02-13
|\ \ | | | | | | vim-patch:8.2.{3510,3512,3514,3515,3534}: nanosecond timestamp change detection
| * | vim-patch:8.2.3534: autoread test is a bit flakyzeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | Problem: Autoread test is a bit flaky. Solution: Wait a brief moment before overwriting the file. https://github.com/vim/vim/commit/944eeb44fb6e9d6d28474a1348d27c07873892f9
| * | vim-patch:8.2.3515: nano time test fails on Mac and FreeBSDzeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | | | | Problem: Nano time test fails on Mac and FreeBSD. Solution: Also check nano time when not on Linux. (Ozaki Kiichi, closes vim/vim#9000) https://github.com/vim/vim/commit/def69dffb3d09a69629b071c89b7893a1783ba53
| * | vim-patch:8.2.3514: autoread test with nano second time sometimes failszeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | Problem: Autoread test with nano second time sometimes fails. Solution: Mark the test as being flaky. https://github.com/vim/vim/commit/eaa006dae3d5730e3b6dead27905444998b2cf8e
| * | vim-patch:8.2.3512: timestamp test fails on some systemszeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | Problem: Timestamp test fails on some systems. Solution: Sleep for a short while. https://github.com/vim/vim/commit/accf4ed352c07ffe59022377c42d36e12dd6d461
| * | vim-patch:8.2.3510: changes are only detected with one second accuracyzeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Changes are only detected with one second accuracy. Solution: Use the nanosecond time if possible. (Leah Neukirchen, closes vim/vim#8873, closes vim/vim#8875) https://github.com/vim/vim/commit/0a7984af5601323fae7b3398f05a48087db7b767 In Nvim Test_checktime_fast() is also flaky. Add a delay to avoid that.
* | | Merge pull request #16914 from godlygeek/fix_14587Christian Clason2022-02-13
|\ \ \ | | | | | | | | fix(screen): don't put empty sign text in line number column
| * | | fix(screen): don't put empty sign text in line number columnMatt Wozniski2022-01-04
| | | | | | | | | | | | | | | | | | | | | | | | When `signcolumn=number` but no sign on a given line has any text, display the line's line number instead of the (empty) sign text in the line number column.
* | | | Merge pull request #17375 from shadmansaleh/fix/vim.g/autoloadChristian Clason2022-02-13
|\ \ \ \ | |_|/ / |/| | | fix: autoload variables not loaded with vim.g & nvim_get_var
| * | | fix: autoload variables not loaded with vim.g & nvim_get_varshadmansaleh2022-02-13
| | | |
* | | | test(old): add test_cdo.vim and test_packadd.vimzeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | | | test_cdo.vim is copied from Vim v8.1.1483. test_packadd.vim is copied from Vim v8.2.0174.
* | | | test(old): move some tests from assert_spec.lua to test_assert.vimzeertzjq2022-02-13
| | | |
* | | | Merge pull request #17385 from seandewar/vim-8.2.4359Sean Dewar2022-02-12
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.{4359,4362,4363,4364}: crash when repeatedly using :retab
| * | | | vim-patch:8.2.4364: MS-Windows: still running out of memory for a very long lineSean Dewar2022-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: still running out of memory for a very long line. Solution: Check for negative length. https://github.com/vim/vim/commit/45491660787043ea412719544881db691338d730
| * | | | vim-patch:8.2.4363: MS-Windows: running out of memory for a very long lineSean Dewar2022-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: running out of memory for a very long line. Solution: Use a 32 bit value for MAXCOL also when ints are 64 bits. https://github.com/vim/vim/commit/8e38555ece7d3fe1edc6681ec70fe5586a524862 This still fails Vim's Windows CI, so let's see what happens...
| * | | | vim-patch:8.2.4362: :retab may allocate too much memorySean Dewar2022-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :retab may allocate too much memory. Solution: Bail out when allocating more than MAXCOL bytes. https://github.com/vim/vim/commit/33f3c5985491032d5bdfc30e722e85d5a0285e64
| * | | | vim-patch:8.2.4359: crash when repeatedly using :retabSean Dewar2022-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: crash when repeatedly using :retab. Solution: Bail out when the line is getting too long. https://github.com/vim/vim/commit/6e28703a8e41f775f64e442c5d11ce1ff599aa3f Cherry-pick e_resulting_text_too_long from v8.2.3492; put it in globals.h as it will eventually be used in other files. Add a modeline to test_retab.vim