summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2024-04-28patch 9.1.0380: Calculating line height for unnecessary amount of linesv9.1.0380Luuk van Baal
Problem: Calculating line height for unnecessary amount of lines with half-page scrolling (zhscn, after 9.1.0280) Solution: Replace "limit_winheight" argument with higher resolution "max" argument to which to limit the calculated line height in plines_m_win() to (Luuk van Baal) fixes: #14650 closes: #14652 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-28patch 9.1.0379: There are a few typosv9.1.0379zeertzjq
Problem: There are a few typos Solution: Fix them (zeertzjq) closes: #14655 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-28patch 9.1.0378: Vim9: no comments allowed after class varsv9.1.0378Yegappan Lakshmanan
Problem: Vim9: no comments allowed after class vars (Christian Robinson, after 9.1.376) Solution: Allow trailing comments after class vars (Yegappan Lakshmanan) closes: #14651 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27patch 9.1.0377: Formatting text wrong when 'breakindent' is setv9.1.0377Christian Brabandt
Problem: formatting text wrong when 'breakindent' is set (Gary Johnson) Solution: temporarily disable 'breakindent' option when formatting text, so that the breakindent is not wrongly taken into account for the line length fixes: #14630 closes: #14637 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignoredv9.1.0376Yegappan Lakshmanan
Problem: Vim9: Trailing commands after class/enum keywords ignored Solution: Remove EX_TRLBAR keyword from command definition (Yegappan Lakshmanan) closes: #14649 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27patch 9.1.0375: tests: 1-second delay after Test_BufEnter_botline()v9.1.0375zeertzjq
Problem: tests: 1-second delay after Test_BufEnter_botline() (after v9.1.0374) Solution: Wipe the created buffers (zeertzjq). closes: #14647 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-26patch 9.1.0374: wrong botline in BufEnterv9.1.0374Jaehwang Jung
Problem: When :edit an existing buffer, line('w$') may return a wrong result. Solution: Reset w_valid in curwin_init() (Jaehwang Jung) `do_ecmd()` reinitializes the current window (`curwin_init()`) whose `w_valid` field may have `VALID_BOTLINE` set. Resetting `w_botline` without marking it as invalid makes subsequent `validate_botline()` calls a no-op, thus resulting in wrong `line('w$')` value. closes: #14642 Signed-off-by: Jaehwang Jung <tomtomjhj@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25patch 9.1.0373: ops.c code uses too many strlen() callsv9.1.0373John Marriott
Problem: ops.c code uses too many strlen() calls Solution: Refactor code and remove more strlen() calls (John Marriott) closes: #14598 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25patch 9.1.0372: Calling CLEAR_FIELD() on the same struct twicev9.1.0372zeertzjq
Problem: Calling CLEAR_FIELD() on the same struct twice. Solution: Remove the second CLEAR_FIELD(). Move the assignment of cookie.sourceing_lnum (zeertzjq). closes: #14627 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25patch 9.1.0371: Vim9: compile_def_function() still too longv9.1.0371Yegappan Lakshmanan
Problem: Vim9: compile_def_function() still too long Solution: Refactor the code into separate functions (Yegappan Lakshmanan) closes: #14632 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25translation(sr): Update Serbian messages (#14633)Ivan Pešić
Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25patch 9.1.0370: MS-Windows: patch number is zero in installerv9.1.0370RestorerZ
Problem: MS-Windows: patch number is zero in installer (jonathan-b-wiebe) Solution: Set VIM_VERSION_PATCHLEVEL, fix a few typos in the installer (RestorerZ) fixes: #14629 closes: #14635 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-24patch 9.1.0369: Vim9: problem when importing autoloaded scriptsv9.1.0369Ernie Rael
Problem: Vim9: problem when importing autoloaded scripts Solution: In `:def` handle storing to vim9 autoload export (Ernie Rael) Problem occurs when `import autoload ./.../autoload/...`. The autoload in the specified path causes the use of an autoload_prefix which combines with the `import autoload` to create trouble. In `generate_store_var()` `case dest_script` use ISN_STOREEXPORT, when needed, instead of ISN_STORES. When executing ISN_STOREEXPORT, check for autoload_prefix. fixes: #14606 closes: #14615 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2024-04-23patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading ↵v9.1.0368RestorerZ
zeroes Problem: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes for the installer Solution: re-define VIM_VERSION_PATCHLEVEL_STR with leading zeroes, interpret Patchlevel as decimal in Make_mvc.mak (RestorerZ) closes: #14471 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-23patch 9.1.0367: compile_def_function is too longv9.1.0367Yegappan Lakshmanan
Problem: compile_def_function is too long Solution: Move out the code to compile the body of a function (Yegappan Lakshmanan) closes: #14622 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-22patch 9.1.0366: filetype: ondir files are not recognizedv9.1.0366Jon Parise
Problem: filetype: ondir files are not recognized Solution: Detect '.ondirrc' as ondir filetype (Jon Parise) closes: #14604 Signed-off-by: Jon Parise <jon@indelible.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-22patch 9.1.0365: Crash when typing many keys with D- modifierv9.1.0365zeertzjq
Problem: Crash when typing many keys with D- modifier (after 9.1.0227). Solution: Don't treat a 0x80 byte inside a special sequence as the start of a special sequence (zeertzjq). closes: #14613 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-22patch 9.1.0364: tests: test_vim9_builtin is a bit slowv9.1.0364Yegappan Lakshmanan
Problem: tests: test_vim9_builtin is a bit slow Solution: source tests from a buffer instead of writing and sourcing a file (Yegappan Lakshmanan) closes: #14614 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-21patch 9.1.0363: tests: test_winfixbuf is a bit slowv9.1.0363Yegappan Lakshmanan
Problem: tests: test_winfixbuf is a bit slow Solution: use defer if possible, reset hidden option, use --not-a-term when starting Vim using system() (Yegappan Lakshmanan) closes: #14611 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-21patch 9.1.0362: expanding rc config files does not work wellv9.1.0362Christian Brabandt
Problem: expanding rc config files does not work well (Michał Sieroń, after v9.1.0327) Solution: initialize chartab option, required to expand evironment variables fixes: #14597 Co-authored-by: author Signed-off-by: author Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-21patch 9.1.0361: Vim9: vim9type.c is too complicatedv9.1.0361Yegappan Lakshmanan
Problem: Vim9: vim9type.c is too complicated Solution: Refactor a few functions in vim9type.c (Yegappan Lakshmanan) closes: #14605 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-21patch 9.1.0360: Vim9: does not handle autoloaded variables wellv9.1.0360Ernie Rael
Problem: Vim9: does not handle autoloaded variables well Solution: Better handle script-level exported variable references from autoload files (Ernie Rael). fixes: #14591 closes: #14607 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-20patch 9.1.0359: MS-Windows: relative import in a script sourced from a ↵v9.1.0359Yegappan Lakshmanan
buffer doesn't work Problem: MS-Windows: Relative import in a script sourced from a buffer doesn't work (Ernie Rael) Solution: Set a filename, so that we are not trying to use script-relative filename (Yegappan Lakshmanan) When a script is sourced from a buffer, the file name is set to ":source buffer=". In MS-Windows, the ":" is a path separator character (used after a drive letter). This results in the code trying to use the ":" prefix to import the script on MS-Windows. To fix this, when importing a script from a script sourced from a buffer with nofile, don't use a script relative path name. fixes #14588 closes: #14603 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-20patch 9.1.0358: wrong drawing in GUI with setcellwidth()v9.1.0358h-east
Problem: wrong drawing in GUI with setcellwidth() (after v9.1.0344) Solution: move gui.in_use condition (h-east) closes: #14600 Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-20patch 9.1.0357: Page scrolling should place cursor at window boundariesv9.1.0357Luuk van Baal
Problem: Page scrolling does not always place the cursor at the top or bottom of the window (Mathias Rav) Solution: Place the cursor at the top or bottom of the window. (Luuk van Baal) fixes: #14585 closes: #14586 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-19patch 9.1.0356: MS-Windows: --remote may change working directoryv9.1.0356Christian Brabandt
Problem: MS-Windows: --remote may change working directory when 'shellslash' is set Solution: normalize directory separators on MS-Windows fixes: #14549 closes: #14587 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-19patch 9.1.0355: filetype: flake.lock files are not recognizedv9.1.0355Riley Bruins
Problem: filetype: flake.lock files are not recognized Solution: Detect 'flake.lock' as json filetype (Riley Bruins) closes: #14589 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0354: runtime(uci): No support for uci file typesv9.1.0354Colin Caine
Problem: runtime(uci): No support for uci file types (Wu, Zhenyu) Solution: include basic uci ftplugin and syntax plugins (Colin Caine) closes: #14575 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Colin Caine <complaints@cmcaine.co.uk> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windowsv9.1.0353Ernie Rael
Problem: tests: Test_autoload_import_relative_compiled fails on Windows Solution: Disable on Windows for now, add missing :bw for clean-up (Ernie Rael) closes: #14579 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0352: Finding cmd modifiers and cmdline-specials is inefficientv9.1.0352John Marriott
Problem: Finding cmd modifiers and cmdline-specials is inefficient Solution: Use binary search to find ex command modifiers and cmdline-special characters and reduce the number of strlen() (John Marriott) closes: #14534 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0351: No test that completing a partial mapping clears 'showcmd'v9.1.0351zeertzjq
Problem: No test that completing a partial mapping clears 'showcmd'. Solution: Complete partial mappings in Test_showcmd_part_map() instead of using :echo. Adjust some comments (zeertzjq). closes: #14580 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0350: tests: test_vim9_dissamble may failv9.1.0350Julio B
Problem: tests: test_vim9_dissamble may fail Solution: Instead of hard-coding the lambda number, accept just any number (Julio B) closes: #14581 Signed-off-by: Julio B <julio.bacel@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0349: Vim9: need static type for typealiasv9.1.0349Yegappan Lakshmanan
Problem: Vim9: need static type for typealias Solution: Refactor the typval2type() function and add a static type for typealias (Yegappan Lakshmanan) closes: #14582 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0348: X11 does not ignore smooth scroll eventv9.1.0348lilydjwg
Problem: X11 does not ignore smooth scroll event (laniakea64) Solution: Correctly ignore unwanted smooth scroll events on X11 (lilydjwg) fixes #14578 closes: #14583 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-18patch 9.1.0347: A few typos in test_xdg when testing gvimrcv9.1.0347Diego Viola
Problem: A few typos in test_xdg when testing gvimrc Solution: Fix them (Diego Viola) closes: #14584 Signed-off-by: Diego Viola <diego.viola@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-17patch 9.1.0346: Patch v9.1.0338 fixed sourcing a script with importv9.1.0346Ernie Rael
Problem: Patch v9.1.0338 fixed sourcing a script with import Solution: Add test `import './file.vim' and verify it works with `:source` so it does not regress (Ernie Rael) closes: #14577 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-17patch 9.1.0345: Problem: gvimrc not sourced from XDG_CONFIG_HOMEv9.1.0345Maxim Kim
Problem: gvimrc not sourced from XDG_CONFIG_HOME (after v9.1.0327) Solution: Also try to source from ~/.config/vim/gvimrc and $XDG_CONFIG_HOME/vim/gvimrc (Maxim Kim) fixes: #14567 closes: #14568 Signed-off-by: Maxim Kim <habamax@haba-debian.habamax> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-17patch 9.1.0344: Cursor wrong after using setcellwidth() in terminalv9.1.0344mikoto2000
Problem: Cursor wrong after using setcellwidth() in terminal (mikoto2000) Solution: output additional spaces, so the behaviour matches the GUI (mikoto2000) fixes: #14539 closes: #14540 Signed-off-by: mikoto2000 <mikoto2000@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Fix CUI `setcellwidths` characters draw behavior to same GUI behavior.
2024-04-17patch 9.1.0343: 'showcmd' wrong for partial mapping with multibytev9.1.0343zeertzjq
Problem: 'showcmd' is wrong for partial mapping with multibyte char, and isn't very readable with modifyOtherKeys. Solution: Decode multibyte char and merge modifiers into the char. (zeertzjq) This improves the following situations: - Multibyte chars whose individual bytes are considered unprintable are now shown properly in 'showcmd' area. - Ctrl-W with modifyOtherKeys now shows ^W in 'showcmd' area. The following situation may still need improvement: - If the char is a special key or has modifiers that cannot be merged into it, internal keycodes are shown in 'showcmd' area like before. This applies to keys typed in Normal mode commands as well, and it's hard to decide how to make it more readable due to the limited space taken by 'showcmd', so I'll leave it for later. closes: #14572 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-16patch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-englishv9.1.0342Julio B
Problem: tests: test_taglist fails when 'helplang' contains non-english Solution: Allow 1 or 2 tagfiles for now (Julio B) related: #14312 closes: #14566 Signed-off-by: Julio B <julio.bacel@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-16patch 9.1.0341: Problem: a few memory leaks are foundv9.1.0341Christian Brabandt
Problem: a few memory leaks are found (LuMingYinDetect ) Solution: properly free the memory Fixes the following problems: - Memory leak in f_maplist() fixes: #14486 - Memory leak in option.c fixes: #14485 - Memory leak in f_resolve() fixes: #14484 - Memory leak in f_autocmd_get() related: #14474 - Memory leak in dict_extend_func() fixes: #14477 fixes: #14238 closes: #14517 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-16patch 9.1.0340: Problem: Error with matchaddpos() and empty listv9.1.0340Christian Brabandt
Problem: Error with matchaddpos() and empty list (@rickhow) Solution: Return early for an empty list fixes: #14525 closes: #14563 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-16patch 9.1.0339: tests: xdg test uses screen dumpsv9.1.0339Yegappan Lakshmanan
Problem: tests: xdg test uses screen dumps Solution: Convert screen dump to normal test (Yegappan Lakshmanan) closes: #14564 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-16patch 9.1.0338: Vim9: import through symlinks not correctly handledv9.1.0338Ernie Rael
Problem: Vim9: import through symlinks not correctly handled Solution: Check for script being a symlink but only once (Ernie Rael) closes: #14565 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-16patch 9.1.0337: Missing entry for XDG vimrc file in :versionv9.1.0337Diego Viola
Problem: Missing entry for XDG vimrc file in :version Solution: Add 4th user vimrc entry to :version output (Diego Viola) related: #14182 closes: #14569 Signed-off-by: Diego Viola <diego.viola@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-15patch 9.1.0336: tests: typo in test_xdgv9.1.0336Diego Viola
Problem: tests: typo in test_xdg Solution: fix typo (Diego Viola) closes: #14562 Signed-off-by: Diego Viola <diego.viola@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-15patch 9.1.0335: String interpolation fails for List typev9.1.0335Yegappan Lakshmanan
Problem: String interpolation fails for List type Solution: use implicit string(list) for string interpolation and :put = (Yegappan Lakshmanan) related: #14529 closes: #14556 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-15patch 9.1.0334: No test for highlight behavior with 'ambiwidth'v9.1.0334zeertzjq
Problem: No test for highlight behavior with 'ambiwidth'. Solution: Add a screendump test for 'ambiwidth' with 'cursorline'. (zeertzjq) closes: #14554 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-15patch 9.1.0333: tests: test_xdg fails on the appimage repov9.1.0333Christian Brabandt
Problem: tests: test_xdg fails on the appimage repo Solution: compare only the last 30 right characters of $MYVIMRC Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-15patch 9.1.0332: tests: some assert_equal() calls have wrong order of argsv9.1.0332zeertzjq
Problem: tests: some assert_equal() calls have wrong order of args Solution: Correct the order (zeertzjq). closes: #14555 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>