aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.1.2120: some MB_ macros are more complicated than necessaryJan Edmund Lazo2019-10-06
| | | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline. https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
* Remove excess <stdint.h>Jan Edmund Lazo2019-09-11
|
* vim-patch:8.1.0843: memory leak when running "make test_cd" #9944Justin M. Keyes2019-04-28
| | | | | | | | | closes #9921 reverts f0a702d1169a Problem: Memory leak when running "make test_cd". Solution: Free the stack element when failing. (Dominique Pelle, closes vim/vim#3877) https://github.com/vim/vim/commit/e0de2164f62a1736cdc64dbf804b77db8af90c10
* chdir: remove unused argument #9901Marco Hinz2019-04-14
|
* lintJan Edmund Lazo2018-07-27
|
* file_search: free stackp if vim_findfile() failedJan Edmund Lazo2018-07-24
| | | | | ff_free_stack_element() accepts NULL ptr and returns early. This removes the need to check if stackp is not NULL.
* vim-patch:8.0.0493: crash with cd command with very long argumentJan Edmund Lazo2018-07-22
| | | | | | Problem: Crash with cd command with very long argument. Solution: Check for running out of space. (Dominique Pellé, closes vim/vim#1576) https://github.com/vim/vim/commit/15618fa643867cf0d9c31f327022a22dff78a0cf
* file_search: Silence PVS/V614: used buffer is never uninitializedZyX2018-04-15
|
* DirChanged: support <buffer> (#8140)Marco Hinz2018-03-16
|
* Fix warning about conversion on mingw64George Zhao2018-01-18
|
* *: Add comment to all C filesZyX2017-04-19
|
* mbyte: replace vim_tolower with mb_tolower handling locale correctlyBjörn Linse2017-04-10
|
* *: Fix some Windows-specific warningsZyX2017-03-29
| | | | Also fixed an error in path_fnamecmp().
* eval: Split and move dict_add_nr_str to typval.cZyX2017-03-29
| | | | Function was split into tv_dict_add_nr() and tv_dict_add_str().
* eval: Move dict_set_keys_readonly to typval.cZyX2017-03-29
|
* *: Move some dictionary functions to typval.h and use char*ZyX2017-03-29
| | | | Also fixes buffer reusage in setmatches() and complete().
* DirChanged: avoid redundant events on 'autochdir'Justin M. Keyes2017-03-12
|
* DirChanged: trigger when switching scopesJustin M. Keyes2017-03-12
| | | | Closes #6054
* DirChanged: Publish _after_ updating win/tab CWD.Justin M. Keyes2017-03-12
| | | | | | So getcwd() works correctly during DirChanged event. Closes #6260
* *: Partial string handling refactoringZyX2017-02-15
| | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
* eval.c: Fix findfile(), :find, gf in :terminal. #6009Tommy Allen2017-01-31
| | | | Closes #4299
* errors: Introduce "E856: Filename too long"Justin M. Keyes2017-01-23
|
* refactor: strlcat instead of str{n}cat.cztchoice2017-01-23
| | | | | | | | | | Add xstrlcat function. Closes #3042 References #988 References #1069 coverity: 71530, 71531, 71532
* DirChanged: set <amatch> (#5961)Justin M. Keyes2017-01-17
| | | | | Also: - test that DirChanged is not recursive - fix 'not trigger if :cd fails' test on Windows
* Move apply_autocmd_dirchanged() to vim_chdir()Marco Hinz2017-01-13
|
* Trigger DirChanged on 'autochdir'Marco Hinz2017-01-13
|
* vim-patch:7.4.1909 (#5748)Shougo2016-12-10
| | | | | | Problem: Doubled semicolons. Solution: Reduce to one. (Dominique Pelle) https://github.com/vim/vim/commit/945ec093cd4ddefab930239990564b12eb232153
* 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
* 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.1108 (#4872)James McCoy2016-06-03
| | | | | | | Problem: Expanding "~" halfway a file name. Solution: Handle the file name as one name. (Marco Hinz) Add a test. Closes vim/vim#564. https://github.com/vim/vim/commit/58adb14739fa240ca6020cede9ab1f1cb07bd90a
* Windows: find_file_in_path: Handle absolute path. #4711Michael Ennen2016-05-06
| | | | Originally in vim/vim.
* Merge pull request #4239 from jbradaric/vim-7.4.885Justin M. Keyes2016-02-17
|\ | | | | vim-patch:7.4.885
| * vim-patch:7.4.885Jurica Bradaric2016-02-11
| | | | | | | | | | | | | | | | Problem: When doing an upwards search without wildcards the search fails if the initial directory doesn't exist. Solution: Fix the non-wildcard case. (Stefan Kempf) https://github.com/vim/vim/commit/c79a5452acd695238798947e40086f9823c400e7
* | vim-patch:7.4.877Jurica Bradaric2016-02-11
| | | | | | | | | | | | | | Problem: ":find" sometimes fails. (Excanoe) Solution: Compare current characters instead of previous ones. https://github.com/vim/vim/commit/4d0c7bc74ac6fad5cb599dc3ade6996e848d83b6
* | file_search: Change return type of ff_wc_equal to bool.Jurica Bradaric2016-02-09
| | | | | | | | This makes sense since the function returns only TRUE or FALSE.
* | vim-patch:7.4.843Jurica Bradaric2016-02-09
| | | | | | | | | | | | | | Problem: Still possible to go beyond the end of a string. Solution: Check for NUL also in second string. (Dominique Pelle) https://github.com/vim/vim/commit/d43f0951bca162d4491d57df9277b5dbc462944f
* | file_search: Declare loop variables inside the loop.Jurica Bradaric2016-02-09
| |
* | vim-patch:7.4.835Jurica Bradaric2016-02-09
|/ | | | | | | | Problem: Comparing utf-8 sequences does not handle different byte sizes correctly. Solution: Get the byte size of each character. (Dominique Pelle) https://github.com/vim/vim/commit/f6470c288cb6f8efd60a507baf2c070f9d209ae6
* vim-patch:7.4.642Jurica Bradaric2016-01-22
| | | | | | | Problem: When using "gf" escaped spaces are not handled. Solution: Recognize escaped spaces. https://github.com/vim/vim/commit/d45c07ac7499358c5cb096cadb675ce74ae3eaf6
* Remove unnecessary includes for errno.hRui Abreu Ferreira2015-11-25
|
* minor cleanup. #2610Mark Bainter2015-05-13
| | | | | | | Update vim_isAbsName() to use bool type cleanup casts in vim_findfile() and recover_names() References #2470
* Remove char_u: message:smsg()Michael Reed2015-05-13
|
* Remove char_u: FullName_save()Mark Bainter2015-05-06
|
* Remove char_u: path_with_url()Mark Bainter2015-05-06
|
* Remove char_u: add_pathsep()Mark Bainter2015-05-06
|
* Enable -Wconversion: normal.c.Eliseo Martínez2015-04-27
| | | | | | | | | | | | | | | | | | | | | | | | Refactor summary: - extern int opcount --> extern long opcount - bool find_decl(..., int len, ...) --> bool find_decl(..., size_t len, ...) * int find_ident_under_cursor(...) --> size_t find_ident_under_cursor(...) - int find_ident_at_pos(...) --> size_t find_ident_at_pos(...) - int modify_fname(..., int *usedlen, ..., int *fnamelen) --> int modify_fname(..., size_t *usedlen, ..., size_t *fnamelen) * char_u *eval_vars(..., int *usedlen, ...) --> char_u *eval_vars(..., size_t *usedlen, ...) - int find_cmdline_var(..., int *usedlen) --> ssize_t find_cmdline_var(..., size_t *usedlen) - static char_u *repl_cmdline(..., int srclen, ...) --> static char_u *repl_cmdline(..., size_t srclen, ...) - bool get_visual_text(..., int *lenp) --> bool get_visual_text(..., size_t *lenp) * char_u *find_file_name_in_path(..., int len, ...) --> char_u *find_file_name_in_path(..., size_t len, ...) - static char_u *eval_includeexpr(..., int len) --> static char_u *eval_includeexpr(..., size_t len) - char_u *find_file_in_path(..., int len, ...) --> char_u *find_file_in_path(..., size_t len, ...) * char_u *find_file_in_path_option(..., int len, ...) --> char_u *find_file_in_path_option(..., size_t len, ...) - char_u *find_directory_in_path(..., int len, ...) --> char_u *find_directory_in_path(..., size_t len, ...) * int spell_move_to(...) --> size_t spell_move_to(...) - int spell_check(...) --> size_t spell_check(...) - static int spell_bad_len --> static size_t spell_bad_len - void find_pattern_in_path(..., int len, ...) --> void find_pattern_in_path(..., size_t len, ...) Helped-by: Justin M. Keyes <justinkz@gmail.com>
* memory: Add `free` wrapper and refactor project to use itThiago de Arruda2015-04-13
| | | | | | We already use wrappers for allocation, the new `xfree` function is the equivalent for deallocation and provides a way to fully replace the malloc implementation used by Neovim.
* Wconversion: fix #1578Justin M. Keyes2014-11-28
|
* Wconversion: Fix warnings in file_search.c.Florian Walch2014-11-27
|
* ui: Remove redundant ui.h includesThiago de Arruda2014-11-27
| | | | Also move read_error_exit to os/input.c