Yee Cheng Chin
a77670726e
patch 9.0.1458: buffer overflow when expanding long file name
...
Problem: Buffer overflow when expanding long file name.
Solution: Use a larger buffer and avoid overflowing it. (Yee Cheng Chin,
closes #12201 )
2023-04-16 20:13:12 +01:00
Bram Moolenaar
5145c9a829
patch 9.0.1400: find_file_in_path() is not reentrant
...
Problem: find_file_in_path() is not reentrant.
Solution: Instead of global variables pass pointers to the functions.
(closes #12093 )
2023-03-11 13:55:53 +00:00
zeertzjq
3770f4c9cd
patch 9.0.1231: completion of :runtime does not handle {where} argument
...
Problem: Completion of :runtime does not handle {where} argument.
Solution: Parse the {where} argument. (closes #11863 )
2023-01-22 18:38:51 +00:00
Yegappan Lakshmanan
1cfb14aa97
patch 9.0.1166: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11792 )
2023-01-09 19:04:23 +00:00
K.Takata
11df3aeee5
patch 9.0.0795: readblob() always reads the whole file
...
Problem: readblob() always reads the whole file.
Solution: Add arguments to read part of the file. (Ken Takata,
closes #11402 )
2022-10-19 14:02:40 +01:00
Bram Moolenaar
5a049846e4
patch 9.0.0693: browse() first argument cannot be a bool
...
Problem: browse() first argument cannot be a bool.
Solution: Use tv_get_bool_chk() instead of tv_get_number_chk().
(closes #11308 )
2022-10-08 12:52:09 +01:00
Bram Moolenaar
a4e0b9785e
patch 9.0.0634: evaluating "expr" options has more overhead than needed
...
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'.
2022-10-01 19:43:52 +01:00
Bram Moolenaar
82418263fa
patch 9.0.0618: calling function for reduce() has too much overhead
...
Problem: Calling function for reduce() has too much overhead.
Solution: Do not create a funccall_T every time.
2022-09-28 16:16:15 +01:00
Bram Moolenaar
6f14da15ac
patch 9.0.0411: only created files can be cleaned up with one call
...
Problem: Only created files can be cleaned up with one call.
Solution: Add flags to mkdir() to delete with a deferred function.
Expand the writefile() name to a full path to handle changing
directory.
2022-09-07 21:30:44 +01:00
Bram Moolenaar
806a273f3c
patch 9.0.0379: cleaning up after writefile() is a hassle
...
Problem: Cleaning up after writefile() is a hassle.
Solution: Add the 'D' flag to defer deleting the written file. Very useful
in tests.
2022-09-04 15:40:36 +01:00
Bram Moolenaar
f5724376ab
patch 9.0.0362: expanding ":e %" does not work for remote files
...
Problem: Expanding ":e %" does not work for remote files.
Solution: If the "%" or "#" file does not exist add the expansion anyway.
2022-09-02 19:45:15 +01:00
Bram Moolenaar
d83392a43a
patch 9.0.0345: error message for list argument could be clearer
...
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027 )
2022-09-01 12:22:46 +01:00
Yegappan Lakshmanan
aebc6ef7cd
patch 9.0.0287: Irix systems no longer exist
...
Problem: Irix systems no longer exist.
Solution: Remove references to Irix. (Yegappan Lakshmanan, closes #10994 )
2022-08-27 21:24:26 +01:00
Bram Moolenaar
074fbd4131
patch 9.0.0278: the +wildignore feature is nearly always available
...
Problem: The +wildignore feature is nearly always available.
Solution: Graduate +wildignore for consistency.
2022-08-26 16:41:14 +01:00
Bram Moolenaar
f80f40a55c
patch 9.0.0265: no good reason why the "gf" command isn't in the tiny version
...
Problem: No good reason why the "gf" command is not in the tiny version.
Solution: Graduate the file_in_path feature.
2022-08-25 16:02:23 +01:00
Bram Moolenaar
57e95179ab
patch 9.0.0231: expanding "**" may loop forever with directory links
...
Problem: Expanding "**" may loop forever with directory links.
Solution: Check for being interrupted. (closes #10946 )
2022-08-20 19:26:14 +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
Bram Moolenaar
022f9ef16c
patch 9.0.0028: MS-Windows: tests fail if there is a "runtime" directory
...
Problem: MS-Windows: tests fail if there is a stray "runtime" directory.
Solution: Only use a "runtime" directory if it contains "defaults.vim".
2022-07-02 17:36:31 +01:00
Bram Moolenaar
8088ae95bb
patch 8.2.5138: various small issues
...
Problem: Various small issues.
Solution: Various small improvments.
2022-06-20 11:38:17 +01:00
Yegappan Lakshmanan
a34b4460c2
patch 8.2.5077: various warnings from clang on MS-Windows
...
Problem: Various warnings from clang on MS-Windows.
Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #10553 )
2022-06-11 10:43:26 +01:00
Bram Moolenaar
386c24cd26
patch 8.2.4963: expanding path with "/**" may overrun end of buffer
...
Problem: Expanding path with "/**" may overrun end of buffer.
Solution: Use vim_snprintf().
2022-05-16 12:37:36 +01:00
Bram Moolenaar
6ed545e797
patch 8.2.4928: various white space and cosmetic mistakes
...
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
2022-05-09 20:09:23 +01:00
Bram Moolenaar
a96edb736d
patch 8.2.4841: empty string considered an error for expand()
...
Problem: Empty string considered an error for expand() when 'verbose' is
set. (Christian Brabandt)
Solution: Do not give an error for an empty result. (closes #10307 )
2022-04-28 17:52:24 +01:00
LemonBoy
dca1d40cd0
patch 8.2.4838: checking for absolute path is not trivial
...
Problem: Checking for absolute path is not trivial.
Solution: Add isabsolutepath(). (closes #10303 )
2022-04-28 15:26:33 +01:00
Yegappan Lakshmanan
4829c1c9e9
patch 8.2.4683: verbose check with dict_find() to see if a key is present
...
Problem: Verbose check with dict_find() to see if a key is present.
Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074 )
2022-04-04 15:16:54 +01:00
Yegappan Lakshmanan
2b74b6805b
patch 8.2.4679: cannot have expandcmd() give an error message for mistakes
...
Problem: Cannot have expandcmd() give an error message for mistakes.
Solution: Add an optional argument to give errors. Fix memory leak when
expanding files fails. (Yegappan Lakshmanan, closes #10071 )
2022-04-03 21:30:32 +01:00
LemonBoy
a3157a476b
patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()
...
Problem: 'wildignorecase' is sometimes not used for glob().
Solution: Also use 'wildignorecase' when there are no wildcards.
(closes #10066 , closes #8350 )
2022-04-03 11:58:31 +01:00
Bram Moolenaar
4dea2d92e4
patch 8.2.4653: "import autoload" does not check the file name
...
Problem: "import autoload" does not check the file name.
Solution: Give an error if the file is not readable. (closes #10049 )
2022-03-31 11:37:57 +01:00
Christian Brabandt
81da16b53f
patch 8.2.4535: filename modifer ":8" removes the filename
...
Problem: Filename modifer ":8" removes the filename.
Solution: Use strncpy() instead of vim_strncpy(). (Christian Brabandt,
closes #9918 , closes #8600 )
2022-03-10 12:24:02 +00:00
Bram Moolenaar
5921aeb574
patch 8.2.4418: crash when using special multi-byte character
...
Problem: Crash when using special multi-byte character.
Solution: Don't use isalpha() for an arbitrary character.
2022-02-19 11:20:12 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
78a8404f8b
patch 8.2.4337: part of condition is always true
...
Problem: Part of condition is always true.
Solution: Remove that part of the condition. (closes #9729 )
2022-02-09 15:20:39 +00:00
K.Takata
5411910c77
patch 8.2.4289: warnings reported by MSVC
...
Problem: Warnings reported by MSVC.
Solution: Rename variables and other fixes. (Ken Takata, closes #9689 )
2022-02-03 13:33:03 +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
Dominique Pelle
f5d639a8af
patch 8.2.4070: using uninitialized memory when reading empty file
...
Problem: Using uninitialized memory when reading empty file.
Solution: Check for empty file before checking for NL. (Dominique Pellé,
closes #9511 )
2022-01-12 15:24:40 +00:00
Bram Moolenaar
04935fb17e
patch 8.2.4043: using int for second argument of ga_init2()
...
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-08 16:19:22 +00:00
Bram Moolenaar
a6f7929e62
patch 8.2.4005: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-04 21:30:47 +00:00
Bram Moolenaar
eaaac014a0
patch 8.2.3983: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 17:00:40 +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
851c7a699a
patch 8.2.3618: getcwd() is unclear about how 'autochdir' is used
...
Problem: getcwd() is unclear about how 'autochdir' is used.
Solution: Update the help for getcwd(). Without any arguments always return
the actual current directory. (closes #9142 )
2021-11-18 20:47:31 +00:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
5bca906b30
patch 8.2.3215: 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. Sort the argument lists.
(Yegappan Lakshmanan, closes #8626 )
2021-07-24 21:33:26 +02:00
Yegappan Lakshmanan
0ad871dc4d
patch 8.2.3206: 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. (Yegappan Lakshmanan, closes #8611 )
2021-07-23 20:37:56 +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
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +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
Bram Moolenaar
3cfa5b16b0
patch 8.2.2949: tests failing because no error for float to string conversion
...
Problem: Tests failing because there is no error for float to string
conversion.
Solution: Change the check for failure to check for correct result. Make
some conversions strict in Vim9 script.
2021-06-06 14:14:39 +02:00
Bram Moolenaar
c580943965
patch 8.2.2666: Vim9: not enough function arguments checked for string
...
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in ch_logfile(), char2nr() and others.
2021-03-27 21:23:30 +01:00
Bram Moolenaar
32105ae88f
patch 8.2.2664: Vim9: not enough function arguments checked for string
...
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
2021-03-27 18:59:25 +01:00
Bram Moolenaar
f28f2ac425
patch 8.2.2646: Vim9: error for not using string doesn't mentionargument
...
Problem: Vim9: error for not using string doesn't mention argument.
Solution: Add argument number.
2021-03-22 22:21:26 +01:00