summaryrefslogtreecommitdiff
path: root/src/filepath.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0795: readblob() always reads the whole filev9.0.0795K.Takata2022-10-191-14/+25
| | | | | | Problem: readblob() always reads the whole file. Solution: Add arguments to read part of the file. (Ken Takata, closes #11402)
* patch 9.0.0693: browse() first argument cannot be a boolv9.0.0693Bram Moolenaar2022-10-081-1/+1
| | | | | | Problem: browse() first argument cannot be a bool. Solution: Use tv_get_bool_chk() instead of tv_get_number_chk(). (closes #11308)
* 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.0618: calling function for reduce() has too much overheadv9.0.0618Bram Moolenaar2022-09-281-1/+1
| | | | | Problem: Calling function for reduce() has too much overhead. Solution: Do not create a funccall_T every time.
* patch 9.0.0411: only created files can be cleaned up with one callv9.0.0411Bram Moolenaar2022-09-071-9/+46
| | | | | | | 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.
* patch 9.0.0379: cleaning up after writefile() is a hasslev9.0.0379Bram Moolenaar2022-09-041-20/+45
| | | | | | Problem: Cleaning up after writefile() is a hassle. Solution: Add the 'D' flag to defer deleting the written file. Very useful in tests.
* patch 9.0.0362: expanding ":e %" does not work for remote filesv9.0.0362Bram Moolenaar2022-09-021-2/+21
| | | | | Problem: Expanding ":e %" does not work for remote files. Solution: If the "%" or "#" file does not exist add the expansion anyway.
* patch 9.0.0345: error message for list argument could be clearerv9.0.0345Bram Moolenaar2022-09-011-9/+10
| | | | | Problem: Error message for list argument could be clearer. Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
* patch 9.0.0287: Irix systems no longer existv9.0.0287Yegappan Lakshmanan2022-08-271-2/+0
| | | | | Problem: Irix systems no longer exist. Solution: Remove references to Irix. (Yegappan Lakshmanan, closes #10994)
* patch 9.0.0278: the +wildignore feature is nearly always availablev9.0.0278Bram Moolenaar2022-08-261-2/+0
| | | | | Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency.
* patch 9.0.0265: no good reason why the "gf" command isn't in the tiny versionv9.0.0265Bram Moolenaar2022-08-251-10/+0
| | | | | Problem: No good reason why the "gf" command is not in the tiny version. Solution: Graduate the file_in_path feature.
* patch 9.0.0231: expanding "**" may loop forever with directory linksv9.0.0231Bram Moolenaar2022-08-201-4/+7
| | | | | Problem: Expanding "**" may loop forever with directory links. Solution: Check for being interrupted. (closes #10946)
* patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar2022-07-231-1/+1
| | | | | Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
* patch 9.0.0028: MS-Windows: tests fail if there is a "runtime" directoryv9.0.0028Bram Moolenaar2022-07-021-20/+20
| | | | | Problem: MS-Windows: tests fail if there is a stray "runtime" directory. Solution: Only use a "runtime" directory if it contains "defaults.vim".
* patch 8.2.5138: various small issuesv8.2.5138Bram Moolenaar2022-06-201-2/+2
| | | | | Problem: Various small issues. Solution: Various small improvments.
* patch 8.2.5077: various warnings from clang on MS-Windowsv8.2.5077Yegappan Lakshmanan2022-06-111-1/+2
| | | | | Problem: Various warnings from clang on MS-Windows. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #10553)
* patch 8.2.4963: expanding path with "/**" may overrun end of bufferv8.2.4963Bram Moolenaar2022-05-161-4/+6
| | | | | Problem: Expanding path with "/**" may overrun end of buffer. Solution: Use vim_snprintf().
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-2/+2
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4841: empty string considered an error for expand()v8.2.4841Bram Moolenaar2022-04-281-1/+1
| | | | | | 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)
* patch 8.2.4838: checking for absolute path is not trivialv8.2.4838LemonBoy2022-04-281-0/+12
| | | | | Problem: Checking for absolute path is not trivial. Solution: Add isabsolutepath(). (closes #10303)
* patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan2022-04-041-1/+1
| | | | | Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
* patch 8.2.4679: cannot have expandcmd() give an error message for mistakesv8.2.4679Yegappan Lakshmanan2022-04-031-1/+1
| | | | | | 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)
* patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()v8.2.4671LemonBoy2022-04-031-6/+6
| | | | | | Problem: 'wildignorecase' is sometimes not used for glob(). Solution: Also use 'wildignorecase' when there are no wildcards. (closes #10066, closes #8350)
* patch 8.2.4653: "import autoload" does not check the file namev8.2.4653Bram Moolenaar2022-03-311-16/+18
| | | | | Problem: "import autoload" does not check the file name. Solution: Give an error if the file is not readable. (closes #10049)
* patch 8.2.4535: filename modifer ":8" removes the filenamev8.2.4535Christian Brabandt2022-03-101-1/+1
| | | | | | Problem: Filename modifer ":8" removes the filename. Solution: Use strncpy() instead of vim_strncpy(). (Christian Brabandt, closes #9918, closes #8600)
* patch 8.2.4418: crash when using special multi-byte characterv8.2.4418Bram Moolenaar2022-02-191-1/+1
| | | | | Problem: Crash when using special multi-byte character. Solution: Don't use isalpha() for an arbitrary character.
* patch 8.2.4337: part of condition is always truev8.2.4337=?UTF-8?q?Dundar=20G=C3=B6c?=2022-02-091-1/+1
| | | | | Problem: Part of condition is always true. Solution: Remove that part of the condition. (closes #9729)
* patch 8.2.4289: warnings reported by MSVCv8.2.4289K.Takata2022-02-031-3/+3
| | | | | Problem: Warnings reported by MSVC. Solution: Rename variables and other fixes. (Ken Takata, closes #9689)
* patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar2022-01-311-10/+1
| | | | | Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
* patch 8.2.4070: using uninitialized memory when reading empty filev8.2.4070Dominique Pelle2022-01-121-1/+1
| | | | | | Problem: Using uninitialized memory when reading empty file. Solution: Check for empty file before checking for NL. (Dominique Pellé, closes #9511)
* patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar2022-01-081-2/+2
| | | | | Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
* patch 8.2.4005: error messages are spread outv8.2.4005Bram Moolenaar2022-01-041-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3983: error messages are spread outv8.2.3983Bram Moolenaar2022-01-021-1/+1
| | | | | 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-5/+5
| | | | | 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.3618: getcwd() is unclear about how 'autochdir' is usedv8.2.3618Bram Moolenaar2021-11-181-3/+5
| | | | | | 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)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-5/+57
| | | | | | 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)
* patch 8.2.3215: Vim9: argument types are not checked at compile timev8.2.3215Yegappan Lakshmanan2021-07-241-0/+14
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Sort the argument lists. (Yegappan Lakshmanan, closes #8626)
* patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206Yegappan Lakshmanan2021-07-231-0/+6
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-4/+26
| | | | | | 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.3162: Vim9: argument types are not checked at compile timev8.2.3162Yegappan Lakshmanan2021-07-151-0/+6
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560)
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.2949: tests failing because no error for float to string conversionv8.2.2949Bram Moolenaar2021-06-061-1/+3
| | | | | | | 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.
* patch 8.2.2666: Vim9: not enough function arguments checked for stringv8.2.2666Bram Moolenaar2021-03-271-0/+4
| | | | | Problem: Vim9: not enough function arguments checked for string. Solution: Check in ch_logfile(), char2nr() and others.
* patch 8.2.2664: Vim9: not enough function arguments checked for stringv8.2.2664Bram Moolenaar2021-03-271-14/+14
| | | | | Problem: Vim9: not enough function arguments checked for string. Solution: Check in balloon functions. Refactor function arguments.
* patch 8.2.2646: Vim9: error for not using string doesn't mentionargumentv8.2.2646Bram Moolenaar2021-03-221-11/+16
| | | | | Problem: Vim9: error for not using string doesn't mention argument. Solution: Add argument number.
* patch 8.2.2478: MS-Windows: backup files for plugins are loadedv8.2.2478Bram Moolenaar2021-02-071-1/+4
| | | | | Problem: MS-Windows: backup files for plugins are loaded. Solution: Do not use the alternate file name for files ending in "~".
* patch 8.2.2343: Vim9: return type of readfile() is anyv8.2.2343Bram Moolenaar2021-01-131-4/+23
| | | | | | Problem: Vim9: return type of readfile() is any. Solution: Add readblob() so that readfile() can be expected to always return a list of strings. (closes #7671)
* patch 8.2.2136: Vim9: Using uninitialized variablev8.2.2136Bram Moolenaar2020-12-131-4/+5
| | | | | Problem: Vim9: Using uninitialized variable. Solution: Initialize "len" to zero. Clean up fnamemodify().
* patch 8.2.2133: Vim9: checking for a non-empty string is too strictv8.2.2133Bram Moolenaar2020-12-121-4/+4
| | | | | Problem: Vim9: checking for a non-empty string is too strict. Solution: Check for any string. (closes #7447)