summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_edit.vim
AgeCommit message (Collapse)Author
2024-03-28patch 9.1.0218: Unnecessary multiplications in backspace codev9.1.0218zeertzjq
Problem: Unnecessary multiplications in backspace code, as "col / ts * ts" is the same as "col - col % ts". Solution: Change "col / ts * ts" to "col - col % ts". Adjust the loop and the comments ins_bs() to be easier to understand. Update tests to reset 'smarttab' properly. (zeertzjq) closes: #14308 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-28patch 9.1.0215: Half-page scrolling does not support smooth-scrollingv9.1.0215Luuk van Baal
Problem: Page-wise scrolling with Ctrl-D/Ctrl-U implements it's own logic to change the topline and cursor. More logic than necessary for scrolling with Ctrl-F/Ctrl-B was removed in patch 9.1.0211. Solution: Re-use the logic from Ctrl-E/Ctrl-Y/Ctrl-F/Ctrl-B while staying backward compatible as much as possible. Restore some of the logic that determined how many lines will be scrolled (Luuk van Baal) closes: #14316 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-26patch 9.1.0211: page-wise scrolling does not support smooth-scrollingv9.1.0211Luuk van Baal
Problem: Page-wise scrolling with Ctrl-F/Ctrl-B implements it's own logic to change the topline and cursor. In doing so, skipcol is not handled properly for 'smoothscroll', and virtual lines. Solution: Re-use the logic from Ctrl-E/Ctrl-Y while staying backward compatible as much as possible. closes: #14268 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-25patch 9.1.0204: Backspace inserts spaces with virtual text and 'smarttab'v9.1.0204zeertzjq
Problem: Backspace inserts spaces with virtual text and 'smarttab'. Solution: Ignore virtual text and wrapping when backspacing. (zeertzjq) related: neovim/neovim#28005 closes: #14296 Co-authored-by: VanaIgr <vanaigranov@gmail.com> Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-16patch 9.1.0035: i_CTRL-] triggers InsertCharPrev9.1.0035altermo
Problem: i_CTRL-] triggers InsertCharPre Solution: Return if CTRL-] is received. InsertCharPre is supposed to be only used for chars to be inserted but i_CTRL-] triggers expansion and is not inserted into the buffer (altermo) closes: #13853 closes: #13864 Signed-off-by: altermo Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-09patch 9.0.1886: Various Typosv9.0.1886Christian Brabandt
Problem: Various Typos Solution: Fix Typos This is a collection of typo related commits. closes: #12753 closes: #13016 Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Viktor Szépe <viktor@szepe.net> Co-authored-by: nuid64 <lvkuzvesov@proton.me> Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com> Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-03-25patch 9.0.1428: cursor in wrong position when leaving insert modev9.0.1428Bram Moolenaar
Problem: Cursor in wrong position when leaving insert mode. Solution: Update the w_valid flags. Position the cursor also when not redrawing. (closes #12137)
2023-02-26patch 9.0.1356: cannot cancel "gr" with Escv9.0.1356zeertzjq
Problem: Cannot cancel "gr" with Esc. Solution: Make "gr<Esc>" do nothing. (closes #12064)
2023-02-25patch 9.0.1354: "gr CTRL-G" stays in virtual replace modev9.0.1354Bram Moolenaar
Problem: "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty) Solution: Prepend CTRL-V before control characters. (closes #12045)
2023-02-23patch 9.0.1347: "gr CTRL-O" stays in Insert modev9.0.1347Bram Moolenaar
Problem: "gr CTRL-O" stays in Insert mode. (Pierre Ganty) Solution: Do not set restart_edit when "cmdchar" is 'v'. (closes #12045)
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2023-01-25patch 9.0.1243: :setglobal cannot use script-local function for "expr" optionv9.0.1243zeertzjq
Problem: :setglobal cannot use script-local function for "expr" option. Solution: Use the pointer to the option value properly. (closes #11883)
2022-09-21patch 9.0.0532: edit test is flaky when run under valgrindv9.0.0532Bram Moolenaar
Problem: Edit test is flaky when run under valgrind. Solution: Send some text to the terminal to trigger a redraw.
2022-08-30patch 9.0.0336: tests are flaky because of using a common file namev9.0.0336Bram Moolenaar
Problem: Tests are flaky because of using a common file name. Solution: Rename files and directories to be more unique.
2022-08-29patch 9.0.0323: using common name in tests leads to flaky testsv9.0.0323Bram Moolenaar
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
2022-07-26patch 9.0.0083: ModeChanged event not triggered when leaving cmdline windowv9.0.0083zeertzjq
Problem: ModeChanged event not triggered when leaving the cmdline window. Solution: Call may_trigger_modechanged(). (closes #10791)
2022-06-30patch 9.0.0013: reproducing memory access errors can be difficultv9.0.0013Bram Moolenaar
Problem: Reproducing memory access errors can be difficult. Solution: When testing, copy each line to allocated memory, so that valgrind can detect accessing memory before and/or after it. Fix uncovered problems.
2022-06-19patch 8.2.5130: edit test for mode message fails when using valgrindv8.2.5130Bram Moolenaar
Problem: Edit test for mode message fails when using valgrind. Solution: Use WaitForAssert(). Run beep test later.
2022-05-27patch 8.2.5029: "textlock" is always zerov8.2.5029zeertzjq
Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
2022-05-21patch 8.2.4993: smart/C/lisp indenting is optionalv8.2.4993Bram Moolenaar
Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
2022-05-08patch 8.2.4922: mouse test fails on MS-Windowsv8.2.4922Bram Moolenaar
Problem: Mouse test fails on MS-Windows. Solution: Set 'mousemodel' to "extend".
2022-05-08patch 8.2.4916: mouse in Insert mode test failsv8.2.4916Bram Moolenaar
Problem: Mouse in Insert mode test fails. Solution: Fix the text and check relevant positions.
2022-05-05patch 8.2.4876: MS-Windows: Shift-BS results in strange char in powershellv8.2.4876Christian Brabandt
Problem: MS-Windows: Shift-BS results in strange character in powershell. Solution: Add K_S_BS. (Christian Brabandt, closes #10283, closes #10279)
2022-04-08patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehavesv8.2.4711zeertzjq
Problem: When 'insermode' is set :edit from <Cmd> mapping misbehaves. Solution: Don't set "need_start_insertmode" when already in Insert mode. (closes #10116)
2022-04-03patch 8.2.4677: the Athena GUI support is outdatedv8.2.4677Bram Moolenaar
Problem: The Athena GUI support is outdated. Solution: Remove the Athena GUI code.
2022-01-31patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar
Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
2022-01-24patch 8.2.4203: entering a character with CTRL-V may include modifiersv8.2.4203zeertzjq
Problem: Entering a character with CTRL-V may include modifiers. Solution: Reset "mod_mask" when entering a character with digits after CTRL-V. (closes #9610)
2022-01-13patch 8.2.4074: going over the end of NameBuffv8.2.4074Bram Moolenaar
Problem: Going over the end of NameBuff. Solution: Check length when appending a space.
2022-01-03patch 8.2.3989: some insert completion code is not testedv8.2.3989Yegappan Lakshmanan
Problem: Some insert completion code is not tested. Solution: Add a few tests. Refactor thesaurus completion. (Yegappan Lakshmanan, closes #9460)
2021-12-26patch 8.2.3900: it is not easy to use a script-local function for an optionv8.2.3900Yegappan Lakshmanan
Problem: It is not easy to use a script-local function for an option. Solution: recognize s: and <SID> at the start of the expression. (Yegappan Lakshmanan, closes #9401)
2021-12-16patch 8.2.3825: various comments could be improvedv8.2.3825Bram Moolenaar
Problem: Various comments could be improved. Solution: Improve the comments.
2021-11-21patch 8.2.3637: typos in test filesv8.2.3637Dominique Pelle
Problem: Typos in test files. Solution: Correct the typos. (Dominique Pellé, closes #9175)
2021-11-17patch 8.2.3610: crash when ModeChanged triggered too earlyv8.2.3610Bram Moolenaar
Problem: Crash when ModeChanged triggered too early. Solution: Trigger ModeChanged after setting VIsual.
2021-11-17patch 8.2.3609: internal error when ModeChanged is triggered recursivelyv8.2.3609Bram Moolenaar
Problem: Internal error when ModeChanged is triggered when v:event is already in use. Solution: Save and restore v:event if needed.
2021-10-31patch 8.2.3568: ctrl-hat test fails with Athena and Motifv8.2.3568Dominique Pelle
Problem: Ctrl-hat test fails with Athena and Motif. (Elimar Riesebieter) Solution: Run the test only with GTK. (Dominique Pellé, closes #9069)
2021-10-28patch 8.2.3567: CTRL-I in Insert mode is not testedv8.2.3567Dominique Pelle
Problem: CTRL-I in Insert mode is not tested Solution: Add a test case. (Dominique Pellé, closes #8866)
2021-10-22patch 8.2.3555: ModeChanged is not triggered on every mode changev8.2.3555=?UTF-8?q?Magnus=20Gro=C3=9F?=
Problem: ModeChanged is not triggered on every mode change. Solution: Also trigger on minor mode changes. (Maguns Gross, closes #8999)
2021-10-17patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scopev8.2.3528Bram Moolenaar
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope. Solution: Make 'thesaurusfunc' global-local.
2021-10-16patch 8.2.3520: cannot define a function for thesaurus completionv8.2.3520Yegappan Lakshmanan
Problem: Cannot define a function for thesaurus completion. Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes #8987, closes 8950)
2021-10-02patch 8.2.3463: pattern matching with ModeChanged not testedv8.2.3463Bram Moolenaar
Problem: Pattern matching with ModeChanged not tested. Solution: Add a few more test lines. (issue #8856)
2021-10-02patch 8.2.3462: ModeChanged only uses one character for new_mode and old_modev8.2.3462Bram Moolenaar
Problem: The ModeChanged event only uses one character for the new_mode and old_mode values. Solution: Pass one as first argument to mode(). (issue #8856)
2021-09-12patch 8.2.3430: no generic way to trigger an autocommand on mode changev8.2.3430=?UTF-8?q?Magnus=20Gro=C3=9F?=
Problem: No generic way to trigger an autocommand on mode change. Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856)
2021-09-11patch 8.2.3428: using freed memory when replacingv8.2.3428Bram Moolenaar
Problem: Using freed memory when replacing. (Dhiraj Mishra) Solution: Get the line pointer after calling ins_copychar().
2021-06-12patch 8.2.2979: not all options code is covered by testsv8.2.2979Yegappan Lakshmanan
Problem: Not all options code is covered by tests. Solution: Add more tests for options. (Yegappan Lakshmanan, closes #8369)
2021-03-22patch 8.2.2643: various code not covered by testsv8.2.2643Bram Moolenaar
Problem: Various code not covered by tests. Solution: Add a few more test. (Yegappan Lakshmanan, closes #7995)
2021-03-19patch 8.2.2623: some tests fail when run as rootv8.2.2623Bram Moolenaar
Problem: Some tests fail when run as root. Solution: Use CheckNotRoot.
2021-03-05patch 8.2.2570: tests fail when run as rootv8.2.2570Bram Moolenaar
Problem: Tests fail when run as root. Solution: Add a comment mentioning the expected failure. (issue #7919)
2021-02-20patch 8.2.2534: missing test coveragev8.2.2534Bram Moolenaar
Problem: Missing test coverage. Solution: Improve test coverage for completion with different encodings, mapset(), and term function failures. (Dominique Pellé, closes #7877)
2020-10-26patch 8.2.1910: reading past the end of the command linev8.2.1910Bram Moolenaar
Problem: Reading past the end of the command line. Solution: Check for NUL. (closes #7204)
2020-10-21patch 8.2.1874: can't do something just before leaving Insert modev8.2.1874Bram Moolenaar
Problem: Can't do something just before leaving Insert mode. Solution: Add the InsertLeavePre autocommand event. (closes #7177)