aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
Commit message (Collapse)AuthorAge
...
* refactor/rename: path_to_absolute()Justin M. Keyes2018-03-24
|
* refactor/rename: path_try_shorten_fname()Justin M. Keyes2018-03-24
|
* refactor/rename: path_is_absolute()Justin M. Keyes2018-03-24
|
* fixup: lint errorsJan Edmund Lazo2018-01-28
|
* win: explicitly specify pathsepJan Edmund Lazo2018-01-28
|
* fixup: compile-time errorsJan Edmund Lazo2018-01-28
|
* win: detect / and \ as root path separatorJan Edmund Lazo2018-01-28
|
* Fix warning about conversion on mingw64George Zhao2018-01-18
|
* win: vim_FullName(): force backslashes #7287Ignas Anikevicius2017-10-02
| | | | | | | | | - Replace obvious cases of '/' literal with PATHSEP. (There are still some remaining cases that need closer inspection.) - Fixup tests: ui/screen_basic closes #7117 ref https://github.com/neovim/neovim/issues/2471#issuecomment-271193714
* sockets: don't deadlock when connecting to own pipe addressBjörn Linse2017-05-29
|
* Merge pull request #6735 from justinmk/funcattrJames McCoy2017-05-20
|\ | | | | clang 3.6+ REAL_FATTR_NONNULL_RET
| * path.c: Remove invalid FUNC_ATTR_NONNULL_RETJustin M. Keyes2017-05-13
| | | | | | | | References https://github.com/neovim/neovim/pull/6514#issuecomment-301235265
* | env_iter: Learn `delim` parameter.Justin M. Keyes2017-05-15
| |
* | startup: v:progpath fallback: path_guess_exepathJustin M. Keyes2017-05-15
|/ | | | | | | If procfs is missing then libuv cannot find the exe path. Fallback to path_guess_exepath(), adapted from Vim findYourself(). Closes #6734
* *: Add comment to all C filesZyX2017-04-19
|
* lint: fix clint errors around mb_tolower callsBjörn Linse2017-04-10
|
* mbyte: replace vim_tolower with mb_tolower handling locale correctlyBjörn Linse2017-04-10
|
* fileio: Refactor msg_add_fname to something which needs no commentsZyX2017-04-03
|
* *: Fix some Windows-specific warningsZyX2017-03-29
| | | | Also fixed an error in path_fnamecmp().
* eval,*: Move get_tv_string to typval.cZyX2017-03-29
| | | | Function was renamed and changed to return `const char *`.
* *: Move some dictionary functions to typval.h and use char*ZyX2017-03-29
| | | | Also fixes buffer reusage in setmatches() and complete().
* vim-patch:7.4.1991James McCoy2017-02-27
| | | | | | | Problem: glob() does not add a symbolic link when there are no wildcards. Solution: Remove the call to mch_getperm(). https://github.com/vim/vim/commit/00efded1064427ab3f84e4d57af62e0aab876fc6
* win: executable(): full path without extensionJustin M. Keyes2017-02-04
| | | | Absolute path is considered executable even *without* an extension.
* refactor: Remove strncpy/STRNCPY. (#6008)Justin M. Keyes2017-01-26
| | | | | | | | | | | | | | | Closes #731 References #851 Note: This does not remove some intentional legacy usages of strncpy. - memcpy isn't equivalent because it doesn't check the string length of `src`, and doesn't zero-out the remainder of `dst`. - xstrlcpy isn't equivalent because it doesn't zero-out the remainder of `dst`. Some Vim logic depends on that (e.g. ex_append which calls vim_strnsave). Helped-by: Douglas Schneider <ds3@ualberta.ca> Helped-by: oni-link <knil.ino@gmail.com> Helped-by: James McCoy <jamessan@jamessan.com>
* add_pathsep(): Return false if filename is too long.cztchoice2017-01-23
| | | | References #3042
* refactor: strlcat instead of str{n}cat.cztchoice2017-01-23
| | | | | | | | | | Add xstrlcat function. Closes #3042 References #988 References #1069 coverity: 71530, 71531, 71532
* path.c: `vim_FullName()`: Fix heap overflow #5737nfnty2017-01-05
| | | | | | - Clarify documentation. - Return `FAIL` and truncate if `fname` is too long. - Add tests.
* vim-patch:7.4.2274 (#5439)Harm te Hennepe2016-10-12
| | | | | | | Problem: Command line completion on "find **/filename" drops sub-directory. Solution: Handle this case separately. (Harm te Hennepe, closes vim/vim#932, closes vim/vim#939) https://github.com/vim/vim/commit/73d4e4c8922f6f4d256f910a18f47c0c3a48c28b
* refactor: eliminate misc2.cJustin M. Keyes2016-09-13
| | | | | | | | | | move `call_shell` to misc1.c Move some fns to state.c Move some fns to option.c Move some fns to memline.c Move `vim_chdir*` fns to file_search.c Move some fns to new module, bytes.c Move some fns to fileio.c
* path.c: Avoid code duplication for path separator checksRui Abreu Ferreira2016-08-18
|
* Windows: Check drive letter in absolute pathsRui Abreu Ferreira2016-08-18
| | | | | Check if drive letter is alphabetic character in path_is_absolute_path().
* Add Windows support to path_is_absolute()Rui Abreu Ferreira2016-08-18
| | | | vim-patch:0
* Windows: get_past_head() (#5199)Rui Abreu Ferreira2016-08-13
| | | | | | | | | | Reported in #4955, get_past_head() is supposed to return a pointer after the head of the path (/ in UNIX, c:\ in Windows) but the windows case was removed. Removed the Mac reference in the comment, since there no special handling for Mac. vim-patch:0
* Windows: Don't use literal path separatorsRui Abreu Ferreira2016-08-09
| | | | | | | | Per #2471, some path handling functions hardcode the UNIX path separator '/' causing them to fail in Windows. When BLACKSLASH_IN_FILENAME is set we may have to check against psepc and psepcN instead of PATHSEP or use vim_ispathsep_nocolon().
* os/fs: Rename os_file_exists to os_path_exists (#4973)Daniel Xu2016-07-06
| | | | Because the old name did not indicate that the function would return true on directories as well.
* vim-patch:7.4.896Rui Abreu Ferreira2016-05-08
| | | | | | | | | Problem: Editing a URL, which netrw should handle, doesn't work. Solution: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/b4f6a46b01ed00b642a2271e9d1559e51ab0f2c4 Cherry-picked from https://github.com/neovim/neovim/pull/810, rebased.
* Linting.KillTheMule2016-05-02
|
* vim-patch:7.4.672KillTheMule2016-05-02
| | | | | | | | | | | Problem: When completing a shell command, directories in the current directory are not listed. Solution: When "." is not in $PATH also look in the current directory for directories. https://github.com/vim/vim/commit/b5971141dff0c69355fd64196fcc0d0d071d4c82 Most of it applied manually.
* *: Fix new linter errorsZyX2016-05-01
| | | | Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
* Happy little, happy little, happy little linterKillTheMule2016-04-22
|
* vim-patch:7.4.871KillTheMule2016-04-22
| | | | | | | | | | | Problem: Vim leaks memory, when 'wildignore' filters out all matches. Solution: Free the files array when it becomes empty. https://github.com/vim/vim/commit/7b256fe7445b46929f660ea74e9090418f857696 The only nontrivial part of 7.4.871 missing (renamings of variables are in another commit; freeing *files after 0 matches was already there, just FAIL was not returned in that case)
* The trivial part of 7.4.871KillTheMule2016-04-22
|
* vim-patch:7.4.1120Jurica Bradaric2016-04-20
| | | | | | | Problem: delete(x, 'rf') fails if a directory is empty. (Lcd) Solution: Ignore not finding matches in an empty directory. https://github.com/vim/vim/commit/336bd622c31e1805495c034e1a8cfadcc0bbabc7
* vim-patch:7.4.1117Jurica Bradaric2016-04-20
| | | | | | | Problem: No longer get "." and ".." in directory list. Solution: Do not skip "." and ".." unless EW_DODOT is set. https://github.com/vim/vim/commit/d82103ed8534a1207742e9666ac7ef1e47dda12d
* Fix linter errors.Jurica Bradaric2016-04-20
|
* vim-patch:7.4.1116Jurica Bradaric2016-04-20
| | | | | | | Problem: delete(x, 'rf') does not delete files starting with a dot. Solution: Also delete files starting with a dot. https://github.com/vim/vim/commit/b0967d587fc420fa02832533d4915c85d1a78c17
* *: Make set_vim_var_\* functions have proper argument typesZyX2016-04-18
|
* path.c: enable -WconversionCharles Joachim2016-03-27
|
* path.c: Fulfill the `@returns` conditionswatiko2016-02-21
| | | | Original-author: oni-link <knil.ino@gmail.com>
* vim-patch:7.4.903watiko2016-02-21
| | | | | | | | Problem: MS-Windows: When 'encoding' differs from the current code page, expandinig wildcards may cause illegal memory access. Solution: Allocate a longer buffer. (Ken Takata) https://github.com/vim/vim/commit/7314efd87d8c4095229bdc2867a553c36c064918