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
Bram Moolenaar
b171fb1790
patch 8.2.1049: Vim9: leaking memory when using continuation line
...
Problem: Vim9: leaking memory when using continuation line.
Solution: Keep a pointer to the continuation line in evalarg_T. Centralize
checking for a next command.
2020-06-24 20:34:03 +02:00
Bram Moolenaar
a55ba06f69
patch 8.2.0832: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Add initial value.
2020-05-27 21:29:04 +02:00
Bram Moolenaar
9c65253fe7
patch 8.2.0815: maparg() does not provide enough information for mapset()
...
Problem: maparg() does not provide enough information for mapset().
Solution: Add "lhsraw" and "lhsrawalt" items. Drop "simplified"
2020-05-24 13:10:18 +02:00
Bram Moolenaar
c94c1467b9
patch 8.2.0812: mapset() does not properly handle <> notation
...
Problem: mapset() does not properly handle <> notation.
Solution: Convert <> codes. (closes #6116 )
2020-05-22 20:01:06 +02:00
Bram Moolenaar
5a80f8ad5d
patch 8.2.0809: build failure with small features
...
Problem: Build failure with small features. (Tony Mechelynck)
Solution: Move "expr" inside #ifdef.
2020-05-22 13:38:18 +02:00
Bram Moolenaar
4c9243f9fb
patch 8.2.0807: cannot easily restore a mapping
...
Problem: Cannot easily restore a mapping.
Solution: Add mapset().
2020-05-22 13:10:44 +02:00
Bram Moolenaar
6adb9ea0a6
patch 8.2.0670: cannot change window when evaluating 'completefunc'
...
Problem: Cannot change window when evaluating 'completefunc'.
Solution: Make a difference between not changing text or buffers and also
not changing window.
2020-04-30 22:31:18 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
2da0f0c445
patch 8.2.0491: cannot recognize a <script> mapping using maparg()
...
Problem: Cannot recognize a <script> mapping using maparg().
Solution: Add the "script" key. (closes #5873 )
2020-04-01 19:22:12 +02:00
Bram Moolenaar
7f51bbe0d1
patch 8.2.0148: mapping related function in wrong source file
...
Problem: Mapping related function in wrong source file.
Solution: Move the function. Add a few more test cases. (Yegappan
Lakshmanan, closes #5528 )
2020-01-24 20:21:19 +01:00
Bram Moolenaar
e31ee86859
patch 8.2.0098: exe stack length can be wrong without being detected
...
Problem: Exe stack length can be wrong without being detected.
Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
2020-01-07 20:59:34 +01:00
Bram Moolenaar
1a47ae32cd
patch 8.2.0056: execution stack is incomplete and inefficient
...
Problem: Execution stack is incomplete and inefficient.
Solution: Introduce a proper execution stack and use it instead of
sourcing_name/sourcing_lnum. Create a string only when used.
2019-12-29 23:04:25 +01:00
Bram Moolenaar
32aa10203b
patch 8.1.2243: typos in comments
...
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes #5160 ) Also adjust
formatting a bit.
2019-11-02 22:54:41 +01:00
Bram Moolenaar
fafb4b18cd
patch 8.1.2159: some mappings are listed twice
...
Problem: Some mappings are listed twice.
Solution: Skip mappings duplicated for modifyOtherKeys. (closes #5064 )
2019-10-16 18:34:57 +02:00
Bram Moolenaar
459fd785e4
patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabled
...
Problem: Cannot map <C-H> when modifyOtherKeys is enabled.
Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use
only the first one when modifyOtherKeys has been detected.
2019-10-13 16:43:39 +02:00
Bram Moolenaar
581ba39aef
patch 8.1.1969: popup window filter is used in all modes
...
Problem: Popup window filter is used in all modes.
Solution: Add the "filtermode" property.
2019-09-03 22:08:33 +02:00
Bram Moolenaar
e677df8d93
patch 8.1.1966: some code in options.c fits better elsewhere
...
Problem: Some code in options.c fits better elsewhere.
Solution: Move functions from options.c to other files. (Yegappan
Lakshmanan, closes #4889 )
2019-09-02 22:31:11 +02:00
Bram Moolenaar
0a52df50a0
patch 8.1.1887: the +cmdline_compl feature is not in the tiny version
...
Problem: The +cmdline_compl feature is not in the tiny version.
Solution: Graduate the +cmdline_compl feature.
2019-08-18 22:26:31 +02:00
Bram Moolenaar
b66bab381c
patch 8.1.1785: map functionality mixed with character input
...
Problem: Map functionality mixed with character input.
Solution: Move the map functionality to a separate file. (Yegappan
Lakshmanan, closes #4740 ) Graduate the +localmap feature.
2019-08-01 14:28:24 +02:00