aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'upstream/master' into floattitlefloattitleJosh Rahm2022-10-11
|\
| * refactor/mark.c (#20596)Lewis Russell2022-10-11
| |
| * refactor: explicitly convert HANDLE to intptr_t for _open_osfhandle()Wei Tang2022-10-11
| | | | | | | | | | | | | | | | | | | | | | Problem: The first parameter of "_open_osfhandle()" is an intptr_t; however, a HANDLE is passed. The official documentation of [_open_osfhandle](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/open-osfhandle) suggests to cast the HANDLE to intptr_t. MSVC/cl is able to perform an implicit type cast. However, LLVM/clang-cl will generate an compilation error. Solution: Explicitly convert HANDLE to intptr_t for _open_osfhandle().
| * vim-patch:partial:9.0.0715: wrong argument for append() gives two error messageszeertzjq2022-10-10
| | | | | | | | | | | | | | | | | | Problem: Wrong argument for append() gives two error messages. Solution: When getting an error for a number argument don't try using it as a string. (closes vim/vim#11335) https://github.com/vim/vim/commit/801cd35e7e3b21e519e12a1610ee1d721e40893e Skip test as it depends on too many previous patches.
| * fix: change did_emsg back to intzeertzjq2022-10-10
| |
| * vim-patch:9.0.0712: wrong column when calling setcursorcharpos() with zero lnumzeertzjq2022-10-10
| | | | | | | | | | | | | | Problem: Wrong column when calling setcursorcharpos() with zero lnum. Solution: Set the line number before calling buf_charidx_to_byteidx(). (closes vim/vim#11329) https://github.com/vim/vim/commit/79f234499b6692cc16970b7455bc9b002242632f
| * vim-patch:8.2.2671: error for line number in legacy scriptzeertzjq2022-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Error for line number in legacy script. Solution: Check for number type. https://github.com/vim/vim/commit/f6bdd82c7e2076dbacb764a5d288189d61c68451 N/A patches for version.c: vim-patch:8.2.2670: Vim9: error for append(0, text) Problem: Vim9: error for append(0, text). Solution: Check for negative number. (closes vim/vim#8022) https://github.com/vim/vim/commit/b2ac7d0663ef31a335c50c6afca042ed9ace5059
| * vim-patch:8.2.2184: Vim9: no error when using "2" for a line numberzeertzjq2022-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no error when using "2" for a line number. Solution: Give an error message if the line number is invalid. (closes vim/vim#7492) https://github.com/vim/vim/commit/9a963377b4811e4e0419ec8825856ff4b01331ac N/A patches for version.c: vim-patch:8.2.1465: Vim9: subscript not handled properly Problem: Vim9: subscript not handled properly. Solution: Adjust error message. Remove dead code. Disallow string to number conversion in scripts. https://github.com/vim/vim/commit/56acb0943ede35cd9d2f6667cde2442819ccbf59
| * vim-patch:9.0.0711: SubStation Alpha files are not recognized (#20577)Christian Clason2022-10-10
| | | | | | | | | | Problem: SubStation Alpha files are not recognized. Solution: Add patterns for SubStation Alpha files. (closes vim/vim#11332) https://github.com/vim/vim/commit/084f2620ec7d08d6043de30436197c002fffe3ec
| * vim-patch:9.0.0713: <amatch> of MenuPopup event is expanded like a file name ↵zeertzjq2022-10-10
| | | | | | | | | | | | | | (#20572) Problem: <amatch> of MenuPopup event is expanded like a file name. Solution: Do not expand <amatch> for MenuPopup. (closes vim/vim#11328) https://github.com/vim/vim/commit/c601d988b6b1a672f71e3d61f4aaa4f7742a3a21
| * vim-patch:9.0.0700: there is no real need for a "big" build (#20563)zeertzjq2022-10-10
| | | | | | | | | | | | Problem: There is no real need for a "big" build. Solution: Move common features to "normal" build, less often used features to the "huge" build. (Martin Tournoij, closes vim/vim#11283) https://github.com/vim/vim/commit/25f3a146a0e4c731b8608f4cfbbfdf7a71b2d05e
| * fix(lua): assert failure with vim.regex() error inside :silent! (#20555)RZia2022-10-10
| | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * vim-patch:9.0.0706: :help in a narrow window always opens at the top (#20559)zeertzjq2022-10-10
| | | | | | | | | | Problem: :help in a narrow window always opens at the top. Solution: Respect 'splitbelow'. (closes vim/vim#11319) https://github.com/vim/vim/commit/28f7e701b7857cfc5ab5531ee7ac26e2542ad662
| * docs: various #12823Justin M. Keyes2022-10-09
| | | | | | | | | | | | | | | | | | | | | | | | - increase python line-length limit from 88 => 100. - gen_help_html: fix bug in "tag" case (tbl_count => tbl_contains) ref #15632 fix #18215 fix #18479 fix #20527 fix #20532 Co-authored-by: Ben Weedon <ben@weedon.email>
| * vim-patch:9.0.0702: incomplete testing cursor position with 'linebreak' setzeertzjq2022-10-09
| | | | | | | | | | | | | | Problem: Incomplete testing cursor position after change with 'linebreak' set. Solution: Add a test and move test cases together. (closes vim/vim#11313) https://github.com/vim/vim/commit/30c0c467d6cc2a7af960ccb9002b50115b0e55cf
| * vim-patch:9.0.0697: cursor in wrong position with Visual substitutezeertzjq2022-10-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor in wrong position with Visual substitute. Solution: When restoring 'linebreak' mark the virtual column as invalid. (closes vim/vim#11309, closes vim/vim#11311) https://github.com/vim/vim/commit/16dab41537ae206f4cab676ad53edbae5fd5fb45 N/A patches for version.c: vim-patch:9.0.0699: tiny build fails Problem: Tiny build fails. Solution: Add #ifdef. https://github.com/vim/vim/commit/bf499c0e6f30a94fe062f83ea0190f93178d0d74
| * build: generate compilation database for older cmake versionsdundargoc2022-10-09
| | | | | | | | | | | | | | | | | | Fall back to the older method of setting CMAKE_EXPORT_COMPILE_COMMANDS for cmake versions less than 3.20. This isn't recommended as it's not possible to exclude targets from generating a compilation database, which may cause some tools like clang-tidy to do unnecessary work. But having an unoptimized compilation database is still useful enough that it's worth having.
| * Merge pull request #20544 from lewis6991/exitfreedebugLewis Russell2022-10-08
| |\ | | | | | | build: remove EXITFREE for debug builds
| | * build: remove EXITFREE for debug buildsLewis Russell2022-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | When EXITFREE is defined, uv handles are not closed on exit in order to better detect memory leaks. However the cost of this is that by not closing the handles there can be lag when exiting nvim. This change removes EXITFREE from debug builds in order to avoid this exit lag for regular debug builders who are not running ASAN.
| * | vim-patch:9.0.0692: PoE filter files are not recognized (#20542)ObserverOfTime2022-10-08
| |/ | | | | | | | | Problem: PoE filter files are not recognized. Solution: Add a pattern to detect PoE filter files. (closes vim/vim#11305) https://github.com/vim/vim/commit/b7f52f5659c68b61ccc645ef866f8fd82361cd26
| * fix(tui): resume main thread if suspending isn't implemented (#20523)zeertzjq2022-10-08
| | | | | | Not doing anything is better than hanging.
| * fix(api): dynamically allocate line buffer for nvim_out_write (#20537)zeertzjq2022-10-08
| |
| * fix: find multibyte file name in line (#20519)zeertzjq2022-10-07
| | | | | | And remove unnecessary unsigned casts in fold marker comparison.
| * fix(ui): setting 'cmdheight' with global statusline (#20515)zeertzjq2022-10-07
| |
| * vim-patch:9.0.0678: using exclamation marks on :function (#20518)zeertzjq2022-10-07
| | | | | | | | | | | | | | Problem: Using exclamation marks on :function. Solution: Use :func and :endfunc as usual. https://github.com/vim/vim/commit/97f0eb169bf805c372b13c6bc9a03da2e75e3354 Add a missing change from patch 8.1.1875.
| * vim-patch:9.0.0666: spacing-combining characters handled as composing (#20501)zeertzjq2022-10-07
| | | | | | | | | | | | | | Problem: Spacing-combining characters handled as composing, causing text to take more space than expected. Solution: Handle characters marked with "Mc" not as composing. (closes vim/vim#11282 https://github.com/vim/vim/commit/7beaf6a720ddc7e2989c8831872bfb98ec78a65d
| * vim-patch:9.0.0670: no space for command line when there is a tabline (#20512)zeertzjq2022-10-06
| | | | | | | | | | | | Problem: No space for command line when there is a tabline. Solution: Correct computation of where the command line should be. (closes vim/vim#11295) https://github.com/vim/vim/commit/c9f5f73206272ccad0aa536854debc5f9781978a
| * vim-patch:9.0.0657: too many #ifdefs (#20506)zeertzjq2022-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes vim/vim#11268) https://github.com/vim/vim/commit/7904fa420eb577274c4c3711295240100167d495 Accidentally forgot to mark as ported: vim-patch:9.0.0471: no test for what patch 9.0.0469 fixes Problem: No test for what patch 9.0.0469 fixes. Solution: Add a test. (closes vim/vim#11140) https://github.com/vim/vim/commit/12167d8b84c4a99751d9928f1a9a59c90b14931f
| * feat(window/ui): add splitkeep option (#19243)luukvbaal2022-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:9.0.0445: when opening/closing window text moves up/down Problem: When opening/closing window text moves up/down. Solution: Add the 'splitscroll' option. When off text will keep its position as much as possible. https://github.com/vim/vim/commit/29ab524358ba429bcf6811710afc97a978641f0b vim-patch:9.0.0455: a few problems with 'splitscroll' Problem: A few problems with 'splitscroll'. Solution: Fix 'splitscroll' problems. (Luuk van Baal, closes vim/vim#11117) https://github.com/vim/vim/commit/5ed391708a62b4ebaa84dd23e32a416e5c3383d9 vim-patch:9.0.0461: 'scroll' is not always updated Problem: 'scroll' is not always updated. Solution: Call win_init_size() at the right place. https://github.com/vim/vim/commit/470a14140bc06f1653edf26ab0b3c9b801080353 vim-patch:9.0.0465: cursor moves when cmdwin is closed when 'splitscroll' is off Problem: Cursor moves when cmdwin is closed when 'splitscroll' is off. Solution: Temporarily set 'splitscroll' when jumping back to the original window. (closes vim/vim#11128) https://github.com/vim/vim/commit/e697d488901b6321ddaad68b553f0a434c97d849 vim-patch:9.0.0469: cursor moves if cmdwin is closed when 'splitscroll' is off Problem: Cursor moves if cmdwin is closed when 'splitscroll' is off. Solution: Skip win_fix_cursor if called when cmdwin is open or closing. (Luuk van Baal, closes vim/vim#11134) https://github.com/vim/vim/commit/3735f11050616652525bf80b4fbcb2b3bfeab113 vim-patch:9.0.0478: test for 'splitscroll' takes too much time Problem: Test for 'splitscroll' takes too much time. Solution: Only test some of the combinations. (Luuk van Baal, closes vim/vim#11139) https://github.com/vim/vim/commit/594f9e09cd68e6277b8aa08094405bc642c5792a vim-patch:9.0.0486: text scrolled with 'nosplitscroll', autocmd win and help Problem: Text scrolled with 'nosplitscroll', autocmd win opened and help window closed. Solution: Skip win_fix_scroll() in more situations. (Luuk van Baal, closes vim/vim#11150) https://github.com/vim/vim/commit/d5bc762dea1fd32fa04342f8149f95ccfc3b9709 vim-patch:9.0.0505: various problems with 'nosplitscroll' Problem: Various problems with 'nosplitscroll'. Solution: Fix 'nosplitscroll' problems. (Luuk van Baal, closes vim/vim#11166) https://github.com/vim/vim/commit/faf1d412f5e3665021500b528c0e7301eb02bf0b vim-patch:9.0.0555: scrolling with 'nosplitscroll' in callback changing curwin Problem: Scrolling with 'nosplitscroll' in callback changing curwin. Solution: Invalidate w_cline_row in the right place. (Luuk van Baal, closes vim/vim#11185) https://github.com/vim/vim/commit/20e58561abc4116f3bfbafaef242d886dd77b303 vim-patch:9.0.0603: with 'nosplitscroll' folds are not handled correctly Problem: With 'nosplitscroll' folds are not handled correctly. Solution: Take care of closed folds when moving the cursor. (Luuk van Baal, closes vim/vim#11234) https://github.com/vim/vim/commit/7c1cbb6cd437c6e0c3ccc05840cc931108b4a60a vim-patch:9.0.0605: dump file missing Problem: Dump file missing. Solution: Add the missing dump file. (issue vim/vim#11234) https://github.com/vim/vim/commit/439a2ba1749463718b6ce1e1375b68c7b7cff808 vim-patch:9.0.0647: the 'splitscroll' option is not a good name Problem: The 'splitscroll' option is not a good name. Solution: Rename 'splitscroll' to 'splitkeep' and make it a string option, also supporting "topline". (Luuk van Baal, closes vim/vim#11258) https://github.com/vim/vim/commit/13ece2ae1d09009d3fb8acf858c288e7848ecdac vim-patch:9.0.0667: ml_get error when 'splitkeep' is "screen" Problem: ml_get error when 'splitkeep' is "screen". (Marius Gedminas) Solution: Check the botline is not too large. (Luuk van Baal, closes vim/vim#11293, closes vim/vim#11292) https://github.com/vim/vim/commit/346823d3e5668b99d2c2fd920e7f215e21ad3ea7
| * vim-patch:9.0.0422: not enough testing of the :all command (#20503)zeertzjq2022-10-06
| | | | | | | | | | Problem: Not enough testing of the :all command. Solution: Add more testing. (Yegappan Lakshmanan, closes vim/vim#11091) https://github.com/vim/vim/commit/0dc2fd307ffc223cf010d1fdea6e3d5c4524d43c
| * vim-patch:9.0.0665: setting 'cmdheight' has no effect if last window was ↵zeertzjq2022-10-06
| | | | | | | | | | | | | | | | resized (#20500) Problem: Setting 'cmdheight' has no effect if last window was resized. Solution: Do apply 'cmdheight' when told to. Use the frame height instead of the cmdline_row. (closes vim/vim#11286) https://github.com/vim/vim/commit/0816f473ab2f6cf7d8311c0f97371cada7f20d18
| * Merge pull request #20374 from bfredl/notypebfredl2022-10-05
| |\ | | | | | | screen: refactor old curwin-heavy logic and graduate "msgsep" feature
| | * fix(options): no matter what is said, 'cmdheight' is tab-local (susy baka)bfredl2022-10-05
| | |
| | * feat(messages)!: graduate the 'msgsep' featurebfredl2022-10-05
| | | | | | | | | | | | | | | | | | | | | The old behaviour (e.g. via `set display-=msgsep`) will not be available. Assuming that messages always are being drawn on msg_grid (or not drawn at all, and forwarded to `ext_messages` enabled UI) will allows some simplifcations and enhancements moving forward.
| | * refactor(redraw): various simplificationsbfredl2022-10-05
| | |
| | * refactor(redraw): no type argument in update_screen()bfredl2022-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was used in the past with assumption that curwin/curbuf is "special" but this has not been true since basically forever at this point. Reduce NOT_VALID/CLEAR panic in options.lua . These should not be set if an effect of the option is causing something which by itself invokes redraw_later().
| * | vim-patch:9.0.0388: the do_arg_all() function is too longzeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | | | | Problem: The do_arg_all() function is too long. Solution: Split the function in smaller parts. (Yegappan Lakshmanan, closes vim/vim#11062) https://github.com/vim/vim/commit/8894761daf68220504932c8b3e75f59138cdb617
| * | vim-patch:8.2.3886: can define autocmd for every event by using "au!"zeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | Problem: Can define autocmd for every event by using "au!". Solution: Check if a command is present also for "au!". https://github.com/vim/vim/commit/b6db1467622be046dbf00b2213fd9f49f4f3cccb
| * | vim-patch:8.2.3885: arglist test failszeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | Problem: Arglist test fails. Solution: Adjust for locking the arglist for ":all". https://github.com/vim/vim/commit/679140c56bbabf12a199d94f584b1b9dfc9809fd
| * | vim-patch:8.2.3884: crash when clearing the argument list while using itzeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | Problem: Crash when clearing the argument list while using it. Solution: Lock the argument list for ":all". https://github.com/vim/vim/commit/6f98371532fcff911b462d51bc64f2ce8a6ae682
| * | vim-patch:8.2.2463: using :arglocal in an autocommand may use freed memoryzeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | | | | Problem: Using :arglocal in an autocommand may use freed memory. (houyunsong) Solution: Check if the arglist is locked. https://github.com/vim/vim/commit/6bcb877ec19a647443195a54eeac60cb693fd827
| * | vim-patch:8.2.2421: double free when using autocommand with "argdel"zeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | Problem: Double free when using autocommand with "argdel". (Houyunsong) Solution: Add the arglist_locked flag. https://github.com/vim/vim/commit/5ed58c7b700fcb9fd03c418300145b616f4bdcdd
| * | vim-patch:8.2.2413: crash when using :all while using a cmdline windowzeertzjq2022-10-05
| |/ | | | | | | | | | | | | | | Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal) Solution: Disallow :all from the cmdline window. https://github.com/vim/vim/commit/bb4b93ed85726c3921596ca267f531c8c94d819a Use test from lastest Vim instead.
| * vim-patch:9.0.0661: multi-byte "lastline" in 'fillchars' does not work properlyzeertzjq2022-10-05
| | | | | | | | | | | | | | Problem: Multi-byte "lastline" item in 'fillchars' does not work properly when the window is two columns wide. Solution: Compute the text length correctly. (closes vim/vim#11280) https://github.com/vim/vim/commit/18b3500b8c517e44c23197e558aa36aed1c6916c
| * vim-patch:9.0.0656: cannot specify another character to use instead of '@'zeertzjq2022-10-05
| | | | | | | | | | | | | | | | | | | | Problem: Cannot specify another character to use instead of '@' at the end of the window. Solution: Add "lastline" to 'fillchars'. (Martin Tournoij, closes vim/vim#11264, closes vim/vim#10963) https://github.com/vim/vim/commit/4ba5f1dab656103e8f4a4505452d1816b9e83c1e Use latest code in drawscreen.c instead.
| * fix(ui): msg_ext_set_kind for nvim_echo (#20476)Shougo2022-10-04
| |
| * vim-patch:8.2.2316: Vim9: cannot list a lambda functionzeertzjq2022-10-04
| | | | | | | | | | | | Problem: Vim9: cannot list a lambda function. Solution: Support the <lambda>9 notation, like :disassemble. (closes vim/vim#7634) https://github.com/vim/vim/commit/b657198cb30765468451d7f68fce49b5b4000c5d
| * Merge #20154 build: cmake cleanupJustin M. Keyes2022-10-02
| |\
| | * build: remove unnecessary translation-related codedundargoc2022-10-02
| | | | | | | | | | | | | | | The commands run in cmake script mode (-P) can simply be run in the main cmake run instead.
| * | feat(l10n): update Turkish translations (#20444)Emir SARI2022-10-02
| | |