Yegappan Lakshmanan
04c4c5746e
patch 9.0.0335: checks for Dictionary argument often give a vague error
...
Problem: Checks for Dictionary argument often give a vague error message.
Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009 )
2022-08-30 19:48:24 +01:00
zeertzjq
e95f22f63a
patch 9.0.0127: unused variable
...
Problem: Unused variable.
Solution: Remove the variable. (closes #10829 )
2022-08-01 11:49:45 +01:00
Bram Moolenaar
d61efa50f8
patch 9.0.0063: too many type casts for dict_get functions
...
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
2022-07-23 09:52:04 +01:00
zeertzjq
c207fd2535
patch 9.0.0002: map functionality outside of map.c
...
Problem: Map functionality outside of map.c.
Solution: Move f_hasmapto() to map.c. Rename a function. (closes #10611 )
2022-06-29 10:37:40 +01:00
Yasuhiro Matsumoto
09f68a5e78
patch 8.2.5125: MS-Windows: warnings from MinGW compiler
...
Problem: MS-Windows: warnings from MinGW compyler.
Solution: Use "volatile". (Yasuhiro Matsumoto, closes #10589 ) Initialize
variable.
2022-06-18 16:48:36 +01:00
Bram Moolenaar
93a1096fe4
patch 8.2.5107: some callers of rettv_list_alloc() check for not OK
...
Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van
Willegen)
Solution: Use "==" instead of "!=" when checking the return value.
2022-06-16 11:42:09 +01:00
zeertzjq
44068e97db
patch 8.2.5106: default cmdwin mappings are re-mappable
...
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.
2022-06-16 11:14:55 +01:00
zeertzjq
cfe456543e
patch 8.2.5029: "textlock" is always zero
...
Problem: "textlock" is always zero.
Solution: Remove "textlock" and rename "textwinlock" to "textlock".
(closes #10489 )
2022-05-27 17:26:55 +01:00
Ernie Rael
d8f5f76621
patch 8.2.4932: not easy to filter the output of maplist()
...
Problem: Not easy to filter the output of maplist().
Solution: Add mode_bits to the dictionary. (Ernie Rael, closes #10356 )
2022-05-10 17:50:39 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
zeertzjq
ac402f4d64
patch 8.2.4867: listing of mapping with K_SPECIAL is wrong
...
Problem: Listing of mapping with K_SPECIAL is wrong.
Solution: Adjust escaping of special characters. (closes #10351 )
2022-05-04 18:51:43 +01:00
Ernie Rael
51d04d16f2
patch 8.2.4861: it is not easy to restore saved mappings
...
Problem: It is not easy to restore saved mappings.
Solution: Make mapset() accept a dict argument. (Ernie Rael, closes #10295 )
2022-05-04 15:40:22 +01:00
zeertzjq
2c8a7ebdad
patch 8.2.4831: crash when using maparg() and unmapping simplified keys
...
Problem: Crash when using maparg() and unmapping simplified keys.
Solution: Do not keep a mapblock pointer. (closes #10294 )
2022-04-26 21:36:21 +01:00
zeertzjq
abeb09b2c5
patch 8.2.4828: fix for unmapping simplified key not fully tested
...
Problem: Fix for unmapping simplified key not fully tested.
Solution: Add a test case. (closes #10292 )
2022-04-26 12:29:43 +01:00
Bram Moolenaar
87f74106f9
patch 8.2.4827: typo in variable name
...
Problem: Typo in variable name. (Gabriel Dupras)
Solution: Rename the variable.
2022-04-25 18:59:25 +01:00
Ernie Rael
09661203ec
patch 8.2.4825: can only get a list of mappings
...
Problem: Can only get a list of mappings.
Solution: Add the optional {abbr} argument. (Ernie Rael, closes #10277 )
Rename to maplist(). Rename test file.
2022-04-25 14:40:44 +01:00
zeertzjq
23d5770ef5
patch 8.2.4824: expression is evaluated multiple times
...
Problem: Expression is evaluated multiple times.
Solution: Evaluate expression once and store the result. (closes #10278 )
2022-04-25 13:28:00 +01:00
Ernie Rael
659c240cf7
patch 8.2.4820: not simple programmatic way to find a specific mapping
...
Problem: Not simple programmatic way to find a specific mapping.
Solution: Add getmappings(). (Ernie Rael, closes #10273 )
2022-04-24 18:40:28 +01:00
zeertzjq
a4e3332650
patch 8.2.4819: unmapping simplified keys also deletes other mapping
...
Problem: Unmapping simplified keys also deletes other mapping.
Solution: Only unmap a mapping with m_simplified set. (closes #10270 )
2022-04-24 17:07:53 +01:00
Yegappan Lakshmanan
5de4c4372d
patch 8.2.4483: command completion makes two rounds to collect matches
...
Problem: Command completion makes two rounds to collect matches.
Solution: Use a growarray to collect matches. (Yegappan Lakshmanan,
closes #9860 )
2022-02-28 13:28:38 +00:00
Yegappan Lakshmanan
6caeda2fce
patch 8.2.4479: no fuzzy completieon for maps and abbreviations
...
Problem: No fuzzy completieon for maps and abbreviations.
Solution: Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan,
closes #9856 )
2022-02-27 12:07:30 +00:00
Bram Moolenaar
d288eaad84
patch 8.2.4401: map listing does not clear the rest of the command line
...
Problem: Map listing does not clear the rest of the command line.
Solution: Call msg_clear_eos(). (closes #5623 , closes #5962 )
2022-02-16 18:27:55 +00:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
Bram Moolenaar
8aa0e6c60d
patch 8.2.4150: Coverity warns for using pointer after free
...
Problem: Coverity warns for using pointer after free.
Solution: Swap statements, even though using the pointer is no problem.
2022-01-20 11:27:58 +00:00
Bram Moolenaar
f61c89d2e6
patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to fail
...
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 )
2022-01-19 22:51:48 +00:00
Bram Moolenaar
a9528b39a6
patch 8.2.4140: maparg() does not indicate the type of script
...
Problem: maparg() does not indicate the type of script where it was defined.
Solution: Add "scriptversion".
2022-01-18 20:51:35 +00:00
Bram Moolenaar
94075b2b0e
patch 8.2.4139: using freed memory in expression abbreviation
...
Problem: Using freed memory if an expression abbreviation deletes the
abbreviation.
Solution: Do not access the pointer after evaluating the expression.
2022-01-18 20:30:39 +00:00
Bram Moolenaar
d648c01f2f
patch 8.2.4111: potential proglem when map is deleted while executing
...
Problem: Potential proglem when map is deleted while executing.
Solution: Reset last used map pointer when deleting a mapping.
2022-01-16 14:58:34 +00:00
Bram Moolenaar
19db9e6ba7
patch 8.2.4059: Vim9: an expression of a map cannot access script-local items
...
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.
2022-01-11 11:58:19 +00:00
Bram Moolenaar
b09feaa86e
patch 8.2.3986: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 20:20:45 +00:00
Bram Moolenaar
ac78dd4a35
patch 8.2.3985: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 19:25:26 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
6d0570117a
patch 8.2.3959: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 18:49:43 +00:00
zeertzjq
a3f83feb63
patch 8.2.3643: header for source file is outdated
...
Problem: Header for source file is outdated.
Solution: Make the header more accurate. (closes #9186 )
2021-11-22 12:47:39 +00:00
Yegappan Lakshmanan
4a15504e91
patch 8.2.3252: duplicated code for adding buffer lines
...
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 )
2021-07-30 21:32:45 +02:00
Bram Moolenaar
e29a27f6f8
patch 8.2.3190: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
2021-07-20 21:07:36 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
K.Takata
eeec254878
patch 8.2.2922: computing array length is done in various ways
...
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305 )
2021-06-02 13:28:16 +02:00
Bram Moolenaar
551c1aed65
patch 8.2.2826: compiler warnings for int to size_t conversion
...
Problem: Compiler warnings for int to size_t conversion. (Randall W.
Morris)
Solution: Add type casts.
2021-05-03 18:57:05 +02:00
Bram Moolenaar
4934ed34c3
patch 8.2.2819: finishing an abbreviation with multi-byte char may not work
...
Problem: Finishing an abbreviation with a multi-byte char may not work.
Solution: Escape K_SPECIAL in the typed character. (closes #8160 )
2021-04-30 19:43:11 +02:00
Bram Moolenaar
7ba1e4d363
patch 8.2.2804: setting buffer local mapping with mapset() changes global
...
Problem: Setting buffer local mapping with mapset() changes global mapping.
Solution: Only set the local mapping. (closes #8143 )
2021-04-24 13:12:38 +02:00
Bram Moolenaar
e5a2dc87fd
patch 8.2.2289: Vim9: 'cpo' can become empty
...
Problem: Vim9: 'cpo' can become empty.
Solution: Use empty_option instead of an empty string. Update quickfix
buffer after restoring 'cpo'. (closes #7608 )
2021-01-03 19:52:05 +01:00
Bram Moolenaar
8e7d6223f6
patch 8.2.2160: various typos
...
Problem: Various typos.
Solution: Fix spelling mistakes. (closes #7494 )
2020-12-18 19:49:56 +01:00
Bram Moolenaar
957cf67d50
patch 8.2.1978: making a mapping work in all modes is complicated
...
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)
2020-11-12 14:21:06 +01:00
Bram Moolenaar
74273e6691
patch 8.2.1782: Vim9: cannot pass boolean to mapset()
...
Problem: Vim9: cannot pass boolean to mapset().
Solution: Use get_tv_bool(). (closes #7041 )
2020-10-01 21:37:21 +02:00
Bram Moolenaar
1b9129809d
patch 8.2.1773: crash when calling mapset() with a list as first argument
...
Problem: Crash when calling mapset() with a list as first argument.
Solution: Check for NULL. (closes #7040 )
2020-09-29 21:45:41 +02:00
Bram Moolenaar
04d594b9c1
patch 8.2.1577: Vim9: hasmapto()/mapcheck()/maparg() do nottake "true" arg
...
Problem: Vim9: hasmapto(), mapcheck() and maparg() do not take "true" as
argument.
Solution: Use tv_get_bool(). (closes #6822 , closes #6824 )
2020-09-02 22:25:35 +02:00
Bram Moolenaar
02c037a4be
patch 8.2.1547: various comment problems
...
Problem: Various comment problems.
Solution: Update comments.
2020-08-30 19:26:45 +02:00