summaryrefslogtreecommitdiff
path: root/src/filepath.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-3/+3
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1804: resolve('/') returns an empty stringv8.2.1804Bram Moolenaar2020-10-051-1/+1
| | | | | Problem: resolve('/') returns an empty string. Solution: Don't remove single slash. (closes #7074)
* patch 8.2.1743: cannot build without the eval featurev8.2.1743Bram Moolenaar2020-09-251-63/+63
| | | | | Problem: Cannot build without the eval feature. Solution: Move shorten_dir outside of #ifdef.
* patch 8.2.1741: pathshorten() only supports using one characterv8.2.1741Bram Moolenaar2020-09-251-42/+73
| | | | | Problem: pathshorten() only supports using one character. Solution: Add an argument to control the length. (closes #7006)
* patch 8.2.1575: Vim9: globpath() doesnot take "true" as argumentv8.2.1575Bram Moolenaar2020-09-021-3/+3
| | | | | Problem: Vim9: globpath() doesnot take "true" as argument. Solution: Use tv_get_bool_chk(). (closes #6821)
* patch 8.2.1574: Vim9: glob() doesnot take "true" as argumentv8.2.1574Bram Moolenaar2020-09-021-3/+3
| | | | | Problem: Vim9: glob() doesnot take "true" as argument. Solution: Use tv_get_bool_chk(). (closes #6821)
* patch 8.2.1486: Vim9: readdir() expression doesn't accept boolv8.2.1486Bram Moolenaar2020-08-191-36/+37
| | | | | Problem: Vim9: readdir() expression doesn't accept bool. Solution: Merge with code for readdirex(). (closes #6737)
* patch 8.2.1485: Vim9: readdirex() expression doesn't accept boolv8.2.1485Bram Moolenaar2020-08-191-0/+6
| | | | | Problem: Vim9: readdirex() expression doesn't accept bool. Solution: Accept both -1 and bool. (closes #6737)
* patch 8.2.1087: possible memory leak when file expansion failsv8.2.1087Bram Moolenaar2020-06-291-1/+6
| | | | | | Problem: Possible memory leak when file expansion fails. Solution: Clear the grow array when returning FAIL. Use an error message instead of an empty string.
* patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049Bram Moolenaar2020-06-241-1/+1
| | | | | | 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.
* patch 8.2.0988: getting directory contents is always case sortedv8.2.0988Bram Moolenaar2020-06-161-2/+42
| | | | | Problem: Getting directory contents is always case sorted. Solution: Add sort options and v:collate. (Christian Brabandt, closes #6229)
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-6/+6
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0942: expanding to local dir after homedir keeps "~/"v8.2.0942Bram Moolenaar2020-06-101-6/+4
| | | | | | Problem: Expanding to local dir after homedir keeps "~/". Solution: Adjust modify_fname(). (Christian Brabandt, closes #6205, closes #5979)
* patch 8.2.0909: cannot go back to the previous local directoryv8.2.0909Bram Moolenaar2020-06-051-0/+1
| | | | | Problem: Cannot go back to the previous local directory. Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes #4362)
* patch 8.2.0875: getting attributes for directory entries is slowv8.2.0875Bram Moolenaar2020-06-011-39/+118
| | | | | Problem: Getting attributes for directory entries is slow. Solution: Add readdirex(). (Ken Takata, closes #5619)
* patch 8.2.0751: Vim9: performance can be improvedv8.2.0751Bram Moolenaar2020-05-131-1/+1
| | | | | | Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().
* patch 8.2.0525: Win32: typo in assignment and misplaced parenv8.2.0525Bram Moolenaar2020-04-061-4/+3
| | | | | Problem: Win32: typo in assignment and misplaced paren. Solution: Fix the syntax.
* patch 8.2.0524: Win32: searching for file matches is slowv8.2.0524Bram Moolenaar2020-04-061-18/+15
| | | | | | | Problem: Win32: searching for file matches is slow. Solution: Instead of making another round to find any short filename, check for the short name right away. Avoid using an ordinary file like a directory. (Nir Lichtman, closes #5883)
* patch 8.2.0521: crash when reading a blob failsv8.2.0521Bram Moolenaar2020-04-061-11/+11
| | | | | | Problem: Crash when reading a blob fails. Solution: Avoid keeping a pointer to a freed blob object. (Dominique Pelle, closes #5890) Adjust error messages.
* patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar2020-04-021-1/+1
| | | | | Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
* patch 8.2.0404: writefile() error does not give a hintv8.2.0404Bram Moolenaar2020-03-191-1/+2
| | | | | Problem: Writefile() error does not give a hint. Solution: Add remark about first argument.
* patch 8.2.0215: wrong file name shorteningv8.2.0215Bram Moolenaar2020-02-051-7/+11
| | | | | | Problem: Wrong file name shortening. (Ingo Karkat) Solution: Better check for path separator. (Yasuhiro Matsumoto, closes #5583, closes #5584)
* patch 8.2.0209: function a bit far away from where it's usedv8.2.0209Bram Moolenaar2020-02-041-35/+35
| | | | | Problem: Function a bit far away from where it's used. Solution: Move function close to where it's used. (Ken Takata, closes #5569)
* patch 8.2.0208: fnamemodify() does not apply ":~" when followed by ":."v8.2.0208Bram Moolenaar2020-02-041-4/+24
| | | | | | Problem: Fnamemodify() does not apply ":~" when followed by ":.". Solution: Don't let a failing ":." cause the ":~" to be skipped. (Yasuhiro Matsumoto, closes #5577)
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-0/+1
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.2.0034: missing check for out of memoryv8.2.0034Bram Moolenaar2019-12-231-1/+5
| | | | | | Problem: Missing check for out of memory. Solution: Check for NULL after vim_strsave(). (Dominique Pelle, closes #5393)
* patch 8.1.2422: "make depend" does not work correctly for libvtermv8.1.2422Bram Moolenaar2019-12-111-1/+1
| | | | | Problem: "make depend" does not work correctly for libvterm. Solution: Fix build dependencies. And a few minor improvements.
* patch 8.1.2379: using old C style commentsv8.1.2379Bram Moolenaar2019-12-011-3/+3
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2252: compiler warning for int sizev8.1.2252Bram Moolenaar2019-11-041-1/+1
| | | | | Problem: Compiler warning for int size. Solution: Add type cast. (Mike Williams)
* patch 8.1.2234: get_short_pathname() fails depending on encodingv8.1.2234Bram Moolenaar2019-10-301-10/+40
| | | | | Problem: get_short_pathname() fails depending on encoding. Solution: Use the wide version of the library function. (closes #5129)
* patch 8.1.2125: fnamemodify() fails when repeating :ev8.1.2125Bram Moolenaar2019-10-081-1/+5
| | | | | Problem: Fnamemodify() fails when repeating :e. Solution: Do not go before the tail. (Rob Pilling, closes #5024)
* patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar2019-10-061-6/+6
| | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
* patch 8.1.2021: some global functions can be local to the filev8.1.2021Bram Moolenaar2019-09-101-1/+1
| | | | | Problem: Some global functions can be local to the file. Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
* patch 8.1.1989: the evalfunc.c file is still too bigv8.1.1989Bram Moolenaar2019-09-051-0/+21
| | | | | | | Problem: The evalfunc.c file is still too big. Solution: Move f_pathshorten() to filepath.c. Move f_cscope_connection() to if_cscope.c. Move diff_ functions to diff.c. Move timer_ functions to ex_cmds2.c. move callback functions to evalvars.c.
* patch 8.1.1985: code for dealing with paths is spread outv8.1.1985Bram Moolenaar2019-09-041-182/+1859
| | | | | | Problem: Code for dealing with paths is spread out. Solution: Move path related functions from misc1.c to filepath.c. Remove NO_EXPANDPATH.
* patch 8.1.1979: code for handling file names is spread outv8.1.1979Bram Moolenaar2019-09-041-0/+2138
Problem: Code for handling file names is spread out. Solution: Move code to new filepath.c file. Graduate FEAT_MODIFY_FNAME.