aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| | * | | vim-patch:8.2.0865 syntax: Add command to control how foldlevel is computedBrad King2020-06-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Syntax foldlevel is taken from the start of the line. Solution: Add ":syn foldlevel" to be able to use the minimal foldlevel in the line. https://github.com/vim/vim/commit/e35a52aee718c881bdfa69a47a1068df6ab6c60a With `foldmethod=syntax` the foldlevel of a line is computed based on syntax items on the line. Previously we always used the level of the syntax item containing the start of the line. This works well in cases such as: if (...) { ... } else if (...) { ... } else { ... } which folds like this: +--- 3 lines: if (...) {--------------------------- +--- 3 lines: else if (...) {---------------------- +--- 3 lines: else {------------------------------- However, the code: if (...) { ... } else if (...) { ... } else { ... } folds like this: +--- 7 lines: if (...) {--------------------------- We can make the latter case fold like this: +--- 2 lines: if (...) {--------------------------- +--- 2 lines: } else if (...) {-------------------- +--- 3 lines: } else {----------------------------- by choosing on each line the lowest fold level that is followed by a higher fold level. Add a syntax command :syntax foldlevel [start | minimum] to choose between these two methods of computing the foldlevel of a line.
| | * | | syntax: Factor out duplicate E390 stringsBrad King2020-06-23
| | | | |
| | * | | syntax: factor out helper to compute the syntax-based foldlevelBrad King2020-06-23
| | |/ /
| * | | vim-patch:8.2.1044: not all systemd file types are recognized (#12527)Jan Edmund Lazo2020-06-24
| | | | | | | | | | | | | | | | | | | | Problem: Not all systemd file types are recognized. Solution: Match several more files. (Guido Cella, closes vim/vim#6319) https://github.com/vim/vim/commit/ef6d86c173becdf82b7a9a1329342c9368340def
| * | | vim-patch:8.2.1041: test summary is missing executed count (#12519)Jan Edmund Lazo2020-06-23
| |/ / | | | | | | | | | | | | Problem: Test summary is missing executed count. Solution: Adjust pattern used for counting. https://github.com/vim/vim/commit/7eaafe65eef88493c789b160914c8e2e8e42d4a7
| * | terminal: preserve mode when using <Cmd>wincmd in terminal mode (#12254)Ghjuvan Lacambre2020-06-22
| | |
| * | main.c: fix hang issue with recoverymode (#12496)erw72020-06-22
| | | | | | | | | | | | | | | In the case of recoverymode, the headlessmode was true, causing the UI to hang without starting. Fix this problem by setting headlessmode to true for List swap files only.
| * | Merge pull request #12455 from janlazo/vim-8.0.1554Matthieu Coudron2020-06-22
| |\ \ | | | | | | | | [RDY]vim-patch:8.0.1554,8.1.1977,8.2.{927,930,932,938,954,963,964,966,980,983,998,999}
| | * | vim-patch:8.2.0999: moving to next sentence gets stuck on quoteJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Moving to next sentence gets stuck on quote. Solution: When moving to the next sentence doesn't result in moving, advance a character and try again. (closes vim/vim#6291) https://github.com/vim/vim/commit/2f03e5a0a9cfaabb01c57dd3348a05e86c26623c
| | * | vim-patch:8.2.0998: not all tag code is testedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Not all tag code is tested. Solution: Add a few more test cases. (Yegappan Lakshmanan, closes vim/vim#6284) https://github.com/vim/vim/commit/3d9207ad2fc98b4f92f77b5a3d52a3a4d25b9561
| | * | vim-patch:8.2.0983: SConstruct file type not recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: SConstruct file type not recognized. Solution: Use python for SConstruct files. (Roland Hieber) https://github.com/vim/vim/commit/ad72350360d1a68d251da62a6e8610950926278c
| | * | vim-patch:8.2.0980: raku file extension not recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Raku file extension not recognized. (Steven Penny) Solution: Recognize .raku and .rakumod. (closes vim/vim#6255) https://github.com/vim/vim/commit/a65d8b5bb9e9267c6e4500c67d26c839a64f30eb
| | * | vim-patch:8.2.0964: TextYankPost does not provide info about Visual selectionJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: TextYankPost does not provide info about Visual selection. Solution: Add the 'visual' key in v:event. (closes vim/vim#6249) https://github.com/vim/vim/commit/37d1673ce007c46ec2338f3236ae1b7b0324bd25
| | * | vim-patch:8.2.0963: number increment/decrement does not work with 'virtualedit'Jan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Number increment/decrement does not work with 'virtualedit'. Solution: Handle coladd changing. (Christian Brabandt, closes vim/vim#6240, closes vim/vim#923) https://github.com/vim/vim/commit/6c6be9e88d72a60ee279ccad73d018c534b71d66
| | * | vim-patch:8.2.0966: 'shortmess' flag "n" not used in two placesJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'shortmess' flag "n" not used in two places. Solution: Make use of the "n" flag consistent. (Nick Jensen, closes vim/vim#6245, closes vim/vim#6244) https://github.com/vim/vim/commit/722e505d1a55dfde5ab62241d10da91d2e10c3c1
| | * | vim-patch:8.2.0954: not all desktop files are recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Not all desktop files are recognized. Solution: Add the *.directory pattern. (Eisuke Kawashima, closes vim/vim#3317) https://github.com/vim/vim/commit/f1f0ff9557353c9a452aac8540411a88cf2da47c
| | * | vim-patch:8.2.0938: NFA regexp uses tolower ()to compare ignore-caseJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs) Solution: Use utf_fold() when possible. (ref. neovim vim/vim#12456) https://github.com/vim/vim/commit/59de417b904bbd204e313f015839317b577bd124
| | * | option: fix pvs/v547Jan Edmund Lazo2020-06-18
| | | |
| | * | eval: fix pvs/v547Jan Edmund Lazo2020-06-18
| | | |
| | * | vim-patch:8.2.0932: missspelling spelllangJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Missspelling spelllang. Solution: Add an "l". (Dominique Pelle) https://github.com/vim/vim/commit/f154f3ab2c1eea67afc20140c580ad003752dc72
| | * | vim-patch:8.2.0930: script filetype detection trips over env -S argumentJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Script filetype detection trips over env -S argument. Solution: Remove "-S" and "--ignore-environment". (closes vim/vim#5013) Add tests. https://github.com/vim/vim/commit/b5e18f29fac9253b0ccf1fde5e74bff72fa1ba60
| | * | vim-patch:8.2.0927: some sshconfig and ssdhconfig files are not recognizedJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Some sshconfig and ssdhconfig files are not recognized. Solution: Add filetype patterns. https://github.com/vim/vim/commit/da84ac2a6f467d0b9eddcc8709433cda75d16a41
| | * | vim-patch:8.0.1554: custom plugins loaded with --cleanJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Custom plugins loaded with --clean. Solution: Do not include the home directory in 'runtimepath'. https://github.com/vim/vim/commit/072687032683b1994d25a114893d9a6f8bc36612
| * | | eval: fix assertion failure in garbage collection (#12436)erw72020-06-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval: fix assertion failure in garbage collection fixes #12387, #12430 Lists with CopyID+1 linked only from previous_funccal may be removed in the garbage collection. Therefore, the terms of the assertions are not correct. This can be confirmed by the following (The l:x with CopyID+1 of the first function call needs to be removed by garbage collection): func! s:f() let l:x = [1] let g:x = l: endfunc for _ in range(2) call s:f() endfor call garbagecollect() " press any key * test: add test for #12387, #12430
| * | | version.c: update [ci skip] (#12391)Marvim the Paranoid Android2020-06-21
| |/ /
| * | Merge pull request #12342 from h-michael/fix-docHirokazu Hata2020-06-15
| |\ \
| | * | doc: fix vim.api.nvim_buf_attach callback argumentsHirokazu Hata2020-06-15
| | | |
| * | | Add overlapped option to jobstarterw72020-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When UV_OVERLAPPED_PIPE was used for the pipe passed to the child process, a problem occurred with the standard input of the .Net Framework application (#11809). Therefore, add the overlapped option to jobstart() and change it so that it is set only when necessary
| * | | Merge pull request #12376 from erw7/fix-stack-overflow-on-input-enqueueMatthieu Coudron2020-06-08
| |\ \ \ | | | | | | | | | | input: fix stack overflow
| | * | | [squash] fix comment [skip ci]erw72020-05-26
| | | | |
| | * | | input: fix stack overflowerw72020-05-25
| | | | | | | | | | | | | | | | | | | | fixes #12287, #11788
| * | | | vim-patch:8.2.0629: setting a boolean option to v:false does not workBilly Su2020-06-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Setting a boolean option to v:false does not work. Solution: Do not use the string representation of the value. (Christian Brabandt, closes vim/vim#5974) https://github.com/vim/vim/commit/65d032c779a43b767497e15e6a32d04a6a8fa65d
| * | | | vim-patch:8.2.0111: VAR_SPECIAL is also used for booleansBilly Su2020-06-06
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking. https://github.com/vim/vim/commit/9b4a15d5dba354d2e1e02871470bad103f34769a
| * | | Merge pull request #12321 from vigoux/treesitter-runtimeMatthieu Coudron2020-06-06
| |\ \ \ | | | | | | | | | | treesitter: update runtime
| | * | | treesitter: update runtimeThomas Vigouroux2020-06-03
| | | | | | | | | | | | | | | | | | | | Update to 81d533d2d1b580fdb507accabc91ceddffb5b6f0.
| | * | | treesitter: enhance script and add READMEThomas Vigouroux2020-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | The script now updates a `treesitter_commit_sha.txt` file to keep track of which commit/branch/tag we're at.
| | * | | treesitter: add update script and update runtimeThomas Vigouroux2020-06-02
| | | | | | | | | | | | | | | | | | | | Update treesitter runtime to : 9a82dcc666d06617cbab3061467075019fae0b0d
| | * | | treesitter: update runtimeThomas Vigouroux2020-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | Since tree-sitter PR 615, predicates are not parsed the same. "Old" way of writing predicates is still supported.
| * | | | vim-patch:8.2.0905: test coverage could be betterJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Test coverage could be better. Solution: Add a couple of tests. (Dominique Pelle, closes vim/vim#6202) https://github.com/vim/vim/commit/e0c3c3d6cbb6f356058f28ecbdf3438411222083
| * | | | vim-patch:8.2.0892: ubsan warns for undefined behaviorJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Ubsan warns for undefined behavior. Solution: Use unsigned instead of signed variable. (Dominique Pelle, closes vim/vim#6193) https://github.com/vim/vim/commit/c5acc0f7fed6b061d994fc5ac660dcc0312750bd
| * | | | vim-patch:8.1.2335: error message for function arguments may use NULL pointerJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Error message for function arguments may use NULL pointer. (Coverity) Solution: Use the original function name. https://github.com/vim/vim/commit/2118a302957dea352174722bf355376901f49b9b
| * | | | vim-patch:8.2.0491: cannot recognize a <script> mapping using maparg()Jan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot recognize a <script> mapping using maparg(). Solution: Add the "script" key. (closes vim/vim#5873) https://github.com/vim/vim/commit/2da0f0c445da3c9b35b2a0cd595d10e81ad2a6f9
| * | | | vim-patch:8.2.0873: a .jl file can be sawfish (lisp) or JuliaJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: A .jl file can be sawfish (lisp) or Julia. Solution: Do not recognize *.jl as lisp, since it might be Julia. (closes vim/vim#6178) https://github.com/vim/vim/commit/2891459b81a21dbd2802ef1ae106c6680f085899
| * | | | vim-patch:8.1.2018: using freed memory when out of memory and displaying messageJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using freed memory when out of memory and displaying message. Solution: Make a copy of the message first. https://github.com/vim/vim/commit/e5fbd7393067c279860598ac8359d1617b1082b9
| * | | | vim-patch:8.1.1895: using NULL pointer when out of memoryJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using NULL pointer when out of memory. Solution: Bail out or skip the code using the pointer. (Zu-Ming Jiang, closes vim/vim#4805, closes vim/vim#4843, closes vim/vim#4939, closes vim/vim#4844) https://github.com/vim/vim/commit/6f10c70b59fa4e56aa479345fb0caeaac7429bfb
| * | | | vim-patch:8.0.1564: too many #ifdefsJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte. https://github.com/vim/vim/commit/f2bd8ef2b4507d02c6043affff8f7e85e3414d5f
| * | | | vim-patch:8.1.0917: double free when running out of memoryJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Double free when running out of memory. Solution: Remove one free. (Ken Takata, closes vim/vim#3955) https://github.com/vim/vim/commit/445e71c5ee06015064cf0642cac8190cfe8fbc59
| * | | | vim-patch:8.2.0089: crash when running out of memory in :setfiletype completionJan Edmund Lazo2020-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when running out of memory in :setfiletype completion. Solution: Do not allocate memory. (Dominique Pelle, closes vim/vim#5438) https://github.com/vim/vim/commit/f0f8055102c264b1d0c0a79bf742dc126fb447b9
| * | | | Add v:event.visual during `TextYankPost` (#12382)Christian Clason2020-06-03
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * propagate visual selection to textyankpost event * adapt tests * add docs * also adapt oldtest
| * | | vim-patch:8.2.0843: filetype elm not detected (#12403)Jan Edmund Lazo2020-05-30
| | | | | | | | | | | | | | | | | | | | Problem: Filetype elm not detected. Solution: Recognize *.elm files. (closes vim/vim#6157) https://github.com/vim/vim/commit/0016fd2e29b7d4d4eef89a0516d14888a8651c61