summaryrefslogtreecommitdiff
path: root/src/testdir/test_mapping.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1516: cannot use special keys in <Cmd> mappingv9.0.1516zeertzjq2023-05-061-9/+18
| | | | | | Problem: Cannot use special keys in <Cmd> mapping. Solution: Do allow for special keys in <Cmd> and <ScriptCmd> mappings. (closes #12326)
* patch 9.0.1457: no regression test for what patch 9.0.1333 fixesv9.0.1457Bram Moolenaar2023-04-161-3/+3
| | | | | Problem: No regression test for what patch 9.0.1333 fixes. Solution: Extend existing test to cover the fixed problem. (issue #11930)
* patch 9.0.1329: completion of map includes simplified onesv9.0.1329zeertzjq2023-02-191-4/+5
| | | | | Problem: Completion of map includes simplified ones. Solution: Do not complete simplified mappings. (closes #12013)
* patch 9.0.0956: terminal tests fail when using key with modifierv9.0.0956Bram Moolenaar2022-11-271-1/+1
| | | | | Problem: Terminal tests fail when using key with modifier. Solution: Use the modifyOtherKeys encoding when using RunVimInTerminal().
* patch 9.0.0954: cannot detect whether modifyOtherKeys is enabledv9.0.0954Bram Moolenaar2022-11-261-2/+16
| | | | | | Problem: Cannot detect whether modifyOtherKeys is enabled. Solution: Use XTQMODKEYS introduced by xterm version 377 to request the modifyOtherKeys level. Update the keycode check results.
* patch 9.0.0873: using freed memory when executing mapclear at more promptv9.0.0873Bram Moolenaar2022-11-131-0/+24
| | | | | Problem: Using freed memory when executing mapclear at the more prompt. Solution: Do not clear mappings while listing them. (closes #11438)
* patch 9.0.0824: crash when using win_move_separator() in other tab pagev9.0.0824zeertzjq2022-11-011-4/+10
| | | | | | Problem: Crash when using win_move_separator() in other tab page. Solution: Check for valid window in current tab page. (closes #11479, closes #11427)
* patch 9.0.0822: crash when dragging the statusline with a mappingv9.0.0822Bram Moolenaar2022-10-311-0/+18
| | | | | Problem: Crash when dragging the statusline with a mapping. Solution: Check for valid window pointer. (issue #11427)
* patch 9.0.0796: mapping test fails in some situationsv9.0.0796Bram Moolenaar2022-10-191-1/+5
| | | | | Problem: Mapping test fails in some situations. Solution: Find the line with the verbose information.
* patch 9.0.0626: too many delete() calls in testsv9.0.0626Bram Moolenaar2022-09-291-14/+7
| | | | | Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
* patch 9.0.0387: repeat <ScriptCmd> mapping doesn't use right script contextv9.0.0387Bram Moolenaar2022-09-051-0/+29
| | | | | | | Problem: repeating a <ScriptCmd> mapping does not use the right script context. Solution: When using a mapping put <SID>{sid}; in the redo buffer. (closes #11049)
* patch 9.0.0018: going over the end of the typaheadv9.0.0018Bram Moolenaar2022-07-011-0/+10
| | | | | Problem: Going over the end of the typahead. Solution: Put a NUL after the typeahead.
* patch 8.2.5064: no test for what 8.1.0052 fixesv8.2.5064zeertzjq2022-06-061-0/+30
| | | | | Problem: No test for what 8.1.0052 fixes. Solution: Add a test. (closes #10531)
* patch 8.2.4924: maparg() may return a string that cannot be reusedv8.2.4924zeertzjq2022-05-091-0/+7
| | | | | | Problem: maparg() may return a string that cannot be reused. Solution: use msg_outtrans_special() instead of str2special(). (closes #10384)
* patch 8.2.4867: listing of mapping with K_SPECIAL is wrongv8.2.4867zeertzjq2022-05-041-0/+20
| | | | | Problem: Listing of mapping with K_SPECIAL is wrong. Solution: Adjust escaping of special characters. (closes #10351)
* patch 8.2.4858: K_SPECIAL may be escaped twicev8.2.4858zeertzjq2022-05-021-0/+15
| | | | | Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes #10340)
* patch 8.2.4828: fix for unmapping simplified key not fully testedv8.2.4828zeertzjq2022-04-261-1/+6
| | | | | Problem: Fix for unmapping simplified key not fully tested. Solution: Add a test case. (closes #10292)
* patch 8.2.4819: unmapping simplified keys also deletes other mappingv8.2.4819zeertzjq2022-04-241-0/+11
| | | | | Problem: Unmapping simplified keys also deletes other mapping. Solution: Only unmap a mapping with m_simplified set. (closes #10270)
* patch 8.2.4818: no test for what 8.2.4806 fixesv8.2.4818zeertzjq2022-04-241-0/+28
| | | | | Problem: No test for what 8.2.4806 fixes. Solution: Add a test. (closes #10727)
* patch 8.2.4692: no test for what 8.2.4691 fixesv8.2.4692zeertzjq2022-04-051-0/+33
| | | | | Problem: No test for what 8.2.4691 fixes. Solution: Add a test. Use a more generic sotlution. (closes #10090)
* patch 8.2.4498: using <Plug> with "noremap" does not workv8.2.4498Bram Moolenaar2022-03-031-0/+30
| | | | | Problem: Using <Plug> with "noremap" does not work. Solution: Always remap <Plug>. (closes #9879, closes #9789)
* patch 8.2.4401: map listing does not clear the rest of the command linev8.2.4401Bram Moolenaar2022-02-161-2/+16
| | | | | Problem: Map listing does not clear the rest of the command line. Solution: Call msg_clear_eos(). (closes #5623, closes #5962)
* patch 8.2.4338: an error from an expression mapping messes up the displayv8.2.4338Bram Moolenaar2022-02-101-0/+32
| | | | | | Problem: An error from an expression mapping messes up the display. Solution: When the expression results in an empty string return K_IGNORE. In cmdline mode redraw the command line. (closes #9726)
* patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257Bram Moolenaar2022-01-291-4/+4
| | | | | | | | Problem: Vim9: finding global function without g: prefix but not finding global variable is inconsistent. Solution: Require using g: for a global function. Change the vim9.vim script into a Vim9 script with exports. Fix that import in legacy script does not work.
* patch 8.2.4149: test override not restored, autocommand left behindv8.2.4149Bram Moolenaar2022-01-201-0/+1
| | | | | Problem: Test override not restored, autocommand left behind. Solution: Correct restoring test override. Delete autocommand afterwards.
* patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to failv8.2.4148Bram Moolenaar2022-01-191-0/+16
| | | | | | | Problem: Deleting any mapping may cause <ScritpCmd> to not set the script context. Solution: Only reset last_used_map if it is the deleted mapping. (closes #9568)
* patch 8.2.4139: using freed memory in expression abbreviationv8.2.4139Bram Moolenaar2022-01-181-1/+13
| | | | | | Problem: Using freed memory if an expression abbreviation deletes the abbreviation. Solution: Do not access the pointer after evaluating the expression.
* patch 8.2.4113: typo on DOCMD_RANGEOK results in not recognizing commandv8.2.4113Bram Moolenaar2022-01-161-0/+16
| | | | | Problem: Typo on DOCMD_RANGEOK results in not recognizing command. Solution: Correct the typo. (closes #9539)
* patch 8.2.4107: script context not restored after using <ScriptCmd>v8.2.4107Bram Moolenaar2022-01-161-0/+14
| | | | | | Problem: Script context not restored after using <ScriptCmd>. Solution: Also restore context when not in a script. (closes #9536) Add the 'c' flag to feedkeys() to be able to test this.
* patch 8.2.4078: terminal test for current directory not used on FreeBSDv8.2.4078Bram Moolenaar2022-01-131-1/+0
| | | | | | Problem: Terminal test for current directory not used on FreeBSD. Solution: Make it work on FreeBSD. (Ozaki Kiichi, closes #9516) Add TermWait() inside Run_shell_in_terminal() as a generic solution.
* patch 8.2.3887: E1135 is used for two different errorsv8.2.3887Bram Moolenaar2021-12-241-1/+1
| | | | | Problem: E1135 is used for two different errors. Solution: Renumber one error.
* patch 8.2.3518: Test_xrestore sometimes failsv8.2.3518Bram Moolenaar2021-10-161-1/+2
| | | | | | Problem: Test_xrestore sometimes fails. Solution: Mark the test as flayky. Move marking test as flaky to the test instead of listing them in runtest.
* patch 8.2.2994: various code is not fully testedv8.2.2994Yegappan Lakshmanan2021-06-131-0/+20
| | | | | Problem: Various code is not fully tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8378)
* patch 8.2.2819: finishing an abbreviation with multi-byte char may not workv8.2.2819Bram Moolenaar2021-04-301-0/+9
| | | | | Problem: Finishing an abbreviation with a multi-byte char may not work. Solution: Escape K_SPECIAL in the typed character. (closes #8160)
* patch 8.2.2728: special key names don't work if 'isident' is clearedv8.2.2728Bram Moolenaar2021-04-061-1/+4
| | | | | | Problem: Special key names don't work if 'isident' is cleared. Solution: Add vim_isNormalIDc() and use it for special key names. (closes #2389)
* patch 8.2.2643: various code not covered by testsv8.2.2643Bram Moolenaar2021-03-221-0/+10
| | | | | Problem: Various code not covered by tests. Solution: Add a few more test. (Yegappan Lakshmanan, closes #7995)
* patch 8.2.2613: new test throws exceptionv8.2.2613Bram Moolenaar2021-03-171-1/+1
| | | | | Problem: New test throws exception. Solution: Adjust the function cleanup.
* patch 8.2.2612: col('.') may get outdated column valuev8.2.2612Bram Moolenaar2021-03-171-0/+24
| | | | | | Problem: col('.') may get outdated column value. Solution: Add a note to the help how to make this work and add a test for it. (closes #7971)
* patch 8.2.2062: <Cmd> does not handle CTRL-Vv8.2.2062Bram Moolenaar2020-11-281-0/+5
| | | | | Problem: <Cmd> does not handle CTRL-V. Solution: Call get_literal() after encountering CTRL-V. (closes #7387)
* patch 8.2.2005: redoing a mapping with <Cmd> doesn't work properlyv8.2.2005Bram Moolenaar2020-11-181-0/+36
| | | | | | Problem: Redoing a mapping with <Cmd> doesn't work properly. Solution: Fill the redo buffer. Use "<SNR>" instead of a key code. (closes #7282)
* patch 8.2.1978: making a mapping work in all modes is complicatedv8.2.1978Bram Moolenaar2020-11-121-0/+468
| | | | | | Problem: Making a mapping work in all modes is complicated. Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282, closes 4784, based on patch by Bjorn Linse)
* patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919Bram Moolenaar2020-10-281-1/+1
| | | | | Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
* patch 8.2.1432: various inconsistencies in test filesv8.2.1432Bram Moolenaar2020-08-121-9/+4
| | | | | | | Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
* patch 8.2.0867: using \{xxx} for encoding a modifier is not nicev8.2.0867Bram Moolenaar2020-05-311-3/+3
| | | | | | Problem: Using \{xxx} for encoding a modifier is not nice. Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a different code.
* patch 8.2.0855: GUI tests fail because the test doesn't use a modifierv8.2.0855Bram Moolenaar2020-05-301-3/+3
| | | | | Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier.
* patch 8.2.0533: tests using term_wait() can still be flakyv8.2.0533Bram Moolenaar2020-04-081-3/+3
| | | | | | | Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes #5899) Halve the initial times to make tests run faster when there is no rerun.
* patch 8.2.0261: some code not covered by testsv8.2.0261Bram Moolenaar2020-02-161-0/+1
| | | | | Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5645)
* patch 8.2.0243: insufficient code coverage for ex_docmd.c functionsv8.2.0243Bram Moolenaar2020-02-111-0/+7
| | | | | Problem: Insufficient code coverage for ex_docmd.c functions. Solution: Add more tests. (Yegappan Lakshmanan, closes #5618)
* patch 8.2.0148: mapping related function in wrong source filev8.2.0148Bram Moolenaar2020-01-241-0/+41
| | | | | | Problem: Mapping related function in wrong source file. Solution: Move the function. Add a few more test cases. (Yegappan Lakshmanan, closes #5528)
* patch 8.2.0144: some mapping code is not fully testedv8.2.0144Bram Moolenaar2020-01-231-1/+249
| | | | | Problem: Some mapping code is not fully tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes #5519)