summaryrefslogtreecommitdiff
path: root/src/map.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0954: cannot detect whether modifyOtherKeys is enabledv9.0.0954Bram Moolenaar2022-11-261-2/+22
| | | | | | 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.0930: cannot debug the Kitty keyboard protocol with TermDebugv9.0.0930Bram Moolenaar2022-11-231-2/+21
| | | | | | | | | Problem: Cannot debug the Kitty keyboard protocol with TermDebug. Solution: Add Kitty keyboard protocol support to the libvterm fork. Recognize the escape sequences that the protocol generates. Add the 'keyprotocol' option to allow the user to specify for which terminal what protocol is to be used, instead of hard-coding this. Add recognizing the kitty keyboard protocol status.
* patch 9.0.0873: using freed memory when executing mapclear at more promptv9.0.0873Bram Moolenaar2022-11-131-1/+35
| | | | | Problem: Using freed memory when executing mapclear at the more prompt. Solution: Do not clear mappings while listing them. (closes #11438)
* patch 9.0.0794: there is no way to find out if modifyOtherKeys has been seenv9.0.0794Bram Moolenaar2022-10-191-41/+63
| | | | | | Problem: There is no way to find out if an escape sequence with modifyOtherKeys has been seen. Solution: Add a notice with ":verbose map".
* patch 9.0.0660: mapping with CTRL keys does not work in the GUIv9.0.0660zeertzjq2022-10-041-1/+5
| | | | | Problem: Mapping with CTRL keys does not work in the GUI. Solution: Recognize CSI next to K_SPECIAL. (closes #11275, closes #11270)
* patch 9.0.0657: too many #ifdefsv9.0.0657Martin Tournoij2022-10-041-3/+0
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
* patch 9.0.0634: evaluating "expr" options has more overhead than neededv9.0.0634Bram Moolenaar2022-10-011-1/+1
| | | | | | | Problem: Evaluating "expr" options has more overhead than needed. Solution: Use call_simple_func() for 'foldtext', 'includeexpr', 'printexpr', "expr" of 'spellsuggest', 'diffexpr', 'patchexpr', 'balloonexpr', 'formatexpr', 'indentexpr' and 'charconvert'.
* patch 9.0.0449: there is no easy way to translate a key code into a stringv9.0.0449zeertzjq2022-09-121-3/+3
| | | | | | Problem: There is no easy way to translate a string with a key code into a readable string. Solution: Add the keytrans() function. (closes #11114)
* patch 9.0.0341: mapset() does not restore <Nop> mapping properlyv9.0.0341zeertzjq2022-08-311-1/+4
| | | | | Problem: mapset() does not restore <Nop> mapping properly. Solution: Use an empty string for <Nop>. (closes #11022)
* patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan2022-08-301-4/+1
| | | | | Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
* patch 9.0.0127: unused variablev9.0.0127zeertzjq2022-08-011-2/+0
| | | | | Problem: Unused variable. Solution: Remove the variable. (closes #10829)
* patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar2022-07-231-15/+15
| | | | | Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
* patch 9.0.0002: map functionality outside of map.cv9.0.0002zeertzjq2022-06-291-5/+39
| | | | | Problem: Map functionality outside of map.c. Solution: Move f_hasmapto() to map.c. Rename a function. (closes #10611)
* patch 8.2.5125: MS-Windows: warnings from MinGW compilerv8.2.5125Yasuhiro Matsumoto2022-06-181-1/+1
| | | | | | Problem: MS-Windows: warnings from MinGW compyler. Solution: Use "volatile". (Yasuhiro Matsumoto, closes #10589) Initialize variable.
* patch 8.2.5107: some callers of rettv_list_alloc() check for not OKv8.2.5107Bram Moolenaar2022-06-161-2/+2
| | | | | | Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van Willegen) Solution: Use "==" instead of "!=" when checking the return value.
* patch 8.2.5106: default cmdwin mappings are re-mappablev8.2.5106zeertzjq2022-06-161-17/+22
| | | | | | Problem: Default cmdwin mappings are re-mappable. Solution: Make the default mappings not re-mappable. (closes #10580) Use symbols for the first do_map() argument.
* patch 8.2.5029: "textlock" is always zerov8.2.5029zeertzjq2022-05-271-2/+2
| | | | | | Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
* patch 8.2.4932: not easy to filter the output of maplist()v8.2.4932Ernie Rael2022-05-101-0/+1
| | | | | Problem: Not easy to filter the output of maplist(). Solution: Add mode_bits to the dictionary. (Ernie Rael, closes #10356)
* patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar2022-05-071-92/+97
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4867: listing of mapping with K_SPECIAL is wrongv8.2.4867zeertzjq2022-05-041-11/+1
| | | | | Problem: Listing of mapping with K_SPECIAL is wrong. Solution: Adjust escaping of special characters. (closes #10351)
* patch 8.2.4861: it is not easy to restore saved mappingsv8.2.4861Ernie Rael2022-05-041-14/+94
| | | | | Problem: It is not easy to restore saved mappings. Solution: Make mapset() accept a dict argument. (Ernie Rael, closes #10295)
* patch 8.2.4831: crash when using maparg() and unmapping simplified keysv8.2.4831zeertzjq2022-04-261-5/+2
| | | | | Problem: Crash when using maparg() and unmapping simplified keys. Solution: Do not keep a mapblock pointer. (closes #10294)
* patch 8.2.4828: fix for unmapping simplified key not fully testedv8.2.4828zeertzjq2022-04-261-0/+2
| | | | | Problem: Fix for unmapping simplified key not fully tested. Solution: Add a test case. (closes #10292)
* patch 8.2.4827: typo in variable namev8.2.4827Bram Moolenaar2022-04-251-5/+5
| | | | | Problem: Typo in variable name. (Gabriel Dupras) Solution: Rename the variable.
* patch 8.2.4825: can only get a list of mappingsv8.2.4825Ernie Rael2022-04-251-3/+18
| | | | | | Problem: Can only get a list of mappings. Solution: Add the optional {abbr} argument. (Ernie Rael, closes #10277) Rename to maplist(). Rename test file.
* patch 8.2.4824: expression is evaluated multiple timesv8.2.4824zeertzjq2022-04-251-6/+5
| | | | | Problem: Expression is evaluated multiple times. Solution: Evaluate expression once and store the result. (closes #10278)
* patch 8.2.4820: not simple programmatic way to find a specific mappingv8.2.4820Ernie Rael2022-04-241-28/+91
| | | | | Problem: Not simple programmatic way to find a specific mapping. Solution: Add getmappings(). (Ernie Rael, closes #10273)
* patch 8.2.4819: unmapping simplified keys also deletes other mappingv8.2.4819zeertzjq2022-04-241-1/+7
| | | | | Problem: Unmapping simplified keys also deletes other mapping. Solution: Only unmap a mapping with m_simplified set. (closes #10270)
* patch 8.2.4483: command completion makes two rounds to collect matchesv8.2.4483Yegappan Lakshmanan2022-02-281-101/+100
| | | | | | Problem: Command completion makes two rounds to collect matches. Solution: Use a growarray to collect matches. (Yegappan Lakshmanan, closes #9860)
* patch 8.2.4479: no fuzzy completieon for maps and abbreviationsv8.2.4479Yegappan Lakshmanan2022-02-271-19/+75
| | | | | | Problem: No fuzzy completieon for maps and abbreviations. Solution: Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan, closes #9856)
* patch 8.2.4401: map listing does not clear the rest of the command linev8.2.4401Bram Moolenaar2022-02-161-0/+1
| | | | | Problem: Map listing does not clear the rest of the command line. Solution: Call msg_clear_eos(). (closes #5623, closes #5962)
* patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar2022-01-311-1/+1
| | | | | Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
* patch 8.2.4150: Coverity warns for using pointer after freev8.2.4150Bram Moolenaar2022-01-201-1/+1
| | | | | Problem: Coverity warns for using pointer after free. Solution: Swap statements, even though using the pointer is no problem.
* patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to failv8.2.4148Bram Moolenaar2022-01-191-1/+1
| | | | | | | 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.4140: maparg() does not indicate the type of scriptv8.2.4140Bram Moolenaar2022-01-181-5/+11
| | | | | Problem: maparg() does not indicate the type of script where it was defined. Solution: Add "scriptversion".
* patch 8.2.4139: using freed memory in expression abbreviationv8.2.4139Bram Moolenaar2022-01-181-5/+18
| | | | | | Problem: Using freed memory if an expression abbreviation deletes the abbreviation. Solution: Do not access the pointer after evaluating the expression.
* patch 8.2.4111: potential proglem when map is deleted while executingv8.2.4111Bram Moolenaar2022-01-161-0/+3
| | | | | Problem: Potential proglem when map is deleted while executing. Solution: Reset last used map pointer when deleting a mapping.
* patch 8.2.4059: Vim9: an expression of a map cannot access script-local itemsv8.2.4059Bram Moolenaar2022-01-111-3/+16
| | | | | | Problem: Vim9: an expression of a map cannot access script-local items. (Maxim Kim) Solution: Use the script ID of where the map was defined.
* patch 8.2.3986: error messages are spread outv8.2.3986Bram Moolenaar2022-01-021-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3985: error messages are spread outv8.2.3985Bram Moolenaar2022-01-021-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3959: error messages are spread outv8.2.3959Bram Moolenaar2021-12-311-9/+7
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3643: header for source file is outdatedv8.2.3643zeertzjq2021-11-221-4/+4
| | | | | Problem: Header for source file is outdated. Solution: Make the header more accurate. (closes #9186)
* patch 8.2.3252: duplicated code for adding buffer linesv8.2.3252Yegappan Lakshmanan2021-07-301-1/+35
| | | | | | Problem: Duplicated code for adding buffer lines. Solution: Move code to a common function. Also move map functions to map.c. (Yegappan Lakshmanan, closes #8665)
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-1/+2
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-0/+6
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-3/+2
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.2826: compiler warnings for int to size_t conversionv8.2.2826Bram Moolenaar2021-05-031-1/+1
| | | | | | Problem: Compiler warnings for int to size_t conversion. (Randall W. Morris) Solution: Add type casts.