Justin M. Keyes
09d21f6f0b
clang/"null passed to nonnull arg": expand_wildcards
2019-01-13 16:54:18 +01:00
ZviRackover
30392b6356
Remove has_mbyte from lines near changes in parent commit
2018-08-16 06:03:49 +03:00
ZviRackover
2bddc4ca54
Remove occurences of mb_head_off
2018-08-15 22:02:33 +03:00
ZviRackover
22311457ab
refactor: Replace vim_strrchr() with strrchar() ( #8718 )
...
ref #1474
2018-08-11 16:14:10 +02:00
Jan Edmund Lazo
84b8612987
vim-patch:8.0.1512: warning for possibly using NULL pointer
...
Problem: Warning for possibly using NULL pointer. (Coverity)
Solution: Skip using the pointer if it's NULL.
e4db7aedab
2018-07-23 08:34:25 -04:00
Jan Edmund Lazo
2574f299e5
vim-patch:8.0.1464: add slash when completing directory #8684
...
Problem: Completing directory after :find does not add slash.
Solution: Adjust the flags for globpath(). (Genki Sky)
8a37b03289
2018-07-10 19:33:18 +02:00
Jan Edmund Lazo
3c7ea8d619
vim-patch:8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
91acfffc1e
2018-06-12 02:00:50 -04:00
Jan Edmund Lazo
be68f218ff
vim-patch:8.0.0355: using uninitialized memory when 'isfname' is empty ( #8493 )
...
Problem: Using uninitialized memory when 'isfname' is empty.
Solution: Don't call getpwnam() without an argument. (Dominique Pelle,
closes vim/vim#1464 )
187a4f2814
2018-06-08 08:10:38 +02:00
ZyX
eba61fbc97
path: Silence PVS/V557: impossible to reach with NUL-terminated string
2018-04-17 01:36:18 +03:00
ZyX
4a1251206a
path: Fix PVS/V560: condition is essentially A && A
2018-04-17 01:07:16 +03:00
Justin M. Keyes
0ecf7e3a2d
refactor/rename: path_to_absolute()
2018-03-24 14:17:40 +01:00
Justin M. Keyes
7ae4144208
refactor/rename: path_try_shorten_fname()
2018-03-24 14:17:40 +01:00
Justin M. Keyes
998a16c926
refactor/rename: path_is_absolute()
2018-03-24 14:17:40 +01:00
Jan Edmund Lazo
273c7cfa2a
fixup: lint errors
2018-01-28 13:58:53 -05:00
Jan Edmund Lazo
ec5af91b90
win: explicitly specify pathsep
2018-01-28 13:58:53 -05:00
Jan Edmund Lazo
e39be42c09
fixup: compile-time errors
2018-01-28 13:58:52 -05:00
Jan Edmund Lazo
909c967f35
win: detect / and \ as root path separator
2018-01-28 13:58:52 -05:00
George Zhao
06994e0e21
Fix warning about conversion on mingw64
2018-01-18 21:30:03 +08:00
Ignas Anikevicius
2b133101cf
win: vim_FullName(): force backslashes #7287
...
- 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
2017-10-02 00:48:30 +02:00
Björn Linse
5a151555c8
sockets: don't deadlock when connecting to own pipe address
2017-05-29 19:02:49 +02:00
James McCoy
6a7514feaa
Merge pull request #6735 from justinmk/funcattr
...
clang 3.6+ REAL_FATTR_NONNULL_RET
2017-05-20 12:37:18 -04:00
Justin M. Keyes
cc5a42a774
env_iter: Learn delim
parameter.
2017-05-15 15:01:52 +02:00
Justin M. Keyes
4c5398bc40
startup: v:progpath fallback: path_guess_exepath
...
If procfs is missing then libuv cannot find the exe path.
Fallback to path_guess_exepath(), adapted from Vim findYourself().
Closes #6734
2017-05-15 15:01:52 +02:00
Justin M. Keyes
9e5d55e2b0
path.c: Remove invalid FUNC_ATTR_NONNULL_RET
...
References https://github.com/neovim/neovim/pull/6514#issuecomment-301235265
2017-05-13 15:04:32 +02:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
Björn Linse
c1cf033981
lint: fix clint errors around mb_tolower calls
2017-04-10 12:02:26 +02:00
Björn Linse
db9ef6263e
mbyte: replace vim_tolower with mb_tolower handling locale correctly
2017-04-10 12:01:40 +02:00
ZyX
5dcf280445
fileio: Refactor msg_add_fname to something which needs no comments
2017-04-03 02:03:05 +03:00
ZyX
4bcee96347
*: Fix some Windows-specific warnings
...
Also fixed an error in path_fnamecmp().
2017-03-29 10:08:42 +03:00
ZyX
28dafe3ff0
eval,*: Move get_tv_string to typval.c
...
Function was renamed and changed to return `const char *`.
2017-03-29 10:08:05 +03:00
ZyX
e18a578308
*: Move some dictionary functions to typval.h and use char*
...
Also fixes buffer reusage in setmatches() and complete().
2017-03-29 10:07:42 +03:00
James McCoy
eb6651b7a9
vim-patch:7.4.1991
...
Problem: glob() does not add a symbolic link when there are no wildcards.
Solution: Remove the call to mch_getperm().
00efded106
2017-02-27 12:03:28 -05:00
Justin M. Keyes
67fbbdb1b5
win: executable(): full path without extension
...
Absolute path is considered executable even *without* an extension.
2017-02-04 11:07:50 +01:00
Justin M. Keyes
59fd0c4132
refactor: Remove strncpy/STRNCPY. ( #6008 )
...
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 >
2017-01-26 14:33:03 +01:00
cztchoice
7c7c5a80a4
add_pathsep(): Return false if filename is too long.
...
References #3042
2017-01-23 15:49:36 +01:00
cztchoice
6e75bb5cbb
refactor: strlcat instead of str{n}cat.
...
Add xstrlcat function.
Closes #3042
References #988
References #1069
coverity: 71530, 71531, 71532
2017-01-23 15:49:36 +01:00
nfnty
7a344c795f
path.c: vim_FullName()
: Fix heap overflow #5737
...
- Clarify documentation.
- Return `FAIL` and truncate if `fname` is too long.
- Add tests.
2017-01-05 15:17:34 +01:00
Harm te Hennepe
3a54ce5a73
vim-patch:7.4.2274 ( #5439 )
...
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 )
73d4e4c892
2016-10-12 23:01:11 +02:00
Justin M. Keyes
df072c3b2b
refactor: eliminate misc2.c
...
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
2016-09-13 16:20:09 +02:00
Rui Abreu Ferreira
ccb6af064f
path.c: Avoid code duplication for path separator checks
2016-08-18 09:41:09 +01:00
Rui Abreu Ferreira
6b94d4d14f
Windows: Check drive letter in absolute paths
...
Check if drive letter is alphabetic character in
path_is_absolute_path().
2016-08-18 09:41:09 +01:00
Rui Abreu Ferreira
22e9c51b0f
Add Windows support to path_is_absolute()
...
vim-patch:0
2016-08-18 09:41:08 +01:00
Rui Abreu Ferreira
fb98145aa2
Windows: get_past_head() ( #5199 )
...
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
2016-08-13 09:08:31 -04:00
Rui Abreu Ferreira
e30b2c2054
Windows: Don't use literal path separators
...
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().
2016-08-09 13:14:43 +01:00
Daniel Xu
5f1a153831
os/fs: Rename os_file_exists to os_path_exists ( #4973 )
...
Because the old name did not indicate that the function
would return true on directories as well.
2016-07-06 01:40:25 -04:00
Rui Abreu Ferreira
24dac220d3
vim-patch:7.4.896
...
Problem: Editing a URL, which netrw should handle, doesn't work.
Solution: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto)
b4f6a46b01
Cherry-picked from https://github.com/neovim/neovim/pull/810 , rebased.
2016-05-08 20:24:02 +02:00
KillTheMule
3e1ca9a2db
Linting.
2016-05-02 21:10:50 +02:00
KillTheMule
00c35ab3b4
vim-patch:7.4.672
...
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.
b5971141df
Most of it applied manually.
2016-05-02 21:09:43 +02:00
ZyX
cf4e1fb0f4
*: Fix new linter errors
...
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.
2016-05-01 20:35:51 +03:00
KillTheMule
98fb53e0eb
Happy little, happy little, happy little linter
2016-04-22 21:19:47 +02:00