ii14
04933b1ea9
refactor: remove redundant casts
2023-04-07 21:08:16 +02:00
ii14
9408f2dcf7
refactor: remove redundant const char * casts
2023-04-07 19:40:57 +02:00
Lucas Merritt
063e93864a
refactor(PVS/V1048): remove duplicated assignments ( #21873 )
2023-03-25 12:11:14 +08:00
dundargoc
4be6c6cf0d
refactor: replace char_u with char ( #21901 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-02-11 11:05:57 +01:00
zeertzjq
6320c91c50
vim-patch:9.0.1231: completion of :runtime does not handle {where} argument
...
Problem: Completion of :runtime does not handle {where} argument.
Solution: Parse the {where} argument. (closes vim/vim#11863 )
3770f4c9cd
2023-01-26 11:55:34 +08:00
dundargoc
4c531714ff
refactor: replace char_u with char 25 ( #21838 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-19 22:25:56 +08:00
dundargoc
8a4285d563
refactor: replace char_u with char 24 ( #21823 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-18 21:17:11 +08:00
zeertzjq
9a2dd52a6a
vim-patch:9.0.1215: using isalpha() adds dependency on current locale
...
Problem: Using isalpha() adds dependency on current locale.
Solution: Do not use isalpha() for recognizing a URL or the end of an Ex
command. (closes vim/vim#11835 )
0ef9a5c094
2023-01-18 06:50:47 +08:00
dundargoc
0344bfad0f
refactor: replace char_u with char 22 ( #21786 )
...
Work on https://github.com/neovim/neovim/issues/459
2023-01-17 21:17:40 +08:00
dundargoc
3269902a13
refactor: fix IWYU mapping file and use IWYU ( #21802 )
...
Also add the EXITFREE definition to main_lib rather than the nvim target, as the header generation needs the EXITFREE flag to work properly.
2023-01-15 14:16:33 +01:00
dundargoc
e89c39d6f0
refactor: replace char_u with char 21 ( #21779 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-14 15:58:28 +08:00
dundargoc
f2141de9e4
refactor: replace char_u with char 20 ( #21714 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-13 07:35:39 +08:00
dundargoc
ef67503320
refactor: replace char_u with char 19 ( #21241 )
...
* refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-10 10:28:01 +08:00
dundargoc
50f03773f4
refactor: replace char_u with char 18 ( #21237 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 22:37:34 +08:00
dundargoc
1492094003
refactor: replace char_u with char 17 - remove STRLCPY ( #21235 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 21:13:06 +08:00
Dundar Göc
bd22585061
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-26 15:52:21 +01:00
Dundar Göc
40f3f75867
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-19 16:27:10 +01:00
bfredl
4b02291f81
Merge pull request #20157 from dundargoc/build/iwyu
...
build: allow IWYU to fix includes for all .c files
2022-11-15 10:55:07 +01:00
dundargoc
66360675cf
build: allow IWYU to fix includes for all .c files
...
Allow Include What You Use to remove unnecessary includes and only
include what is necessary. This helps with reducing compilation times
and makes it easier to visualise which dependencies are actually
required.
Work on https://github.com/neovim/neovim/issues/549 , but doesn't close
it since this only works fully for .c files and not headers.
2022-11-15 10:30:03 +01:00
dundargoc
2755510f78
ci(windows): treat compiler warnings as errors
...
Reduce the warning level from 3 to 1 and fix all warnings.
2022-11-14 20:17:04 +01:00
dundargoc
731cdde28e
refactor: fix clang-tidy warnings
...
Enable and fix bugprone-misplaced-widening-cast warning.
Fix some modernize-macro-to-enum and readability-else-after-return
warnings, but don't enable them. While the warnings can be useful, they
are in general too noisy to enable.
2022-11-06 11:44:10 +01:00
zeertzjq
8e868d699a
vim-patch:8.2.4679: cannot have expandcmd() give an error message for mistakes
...
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 vim/vim#10071 )
2b74b6805b
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2022-11-05 18:06:00 +08:00
zeertzjq
f2d9c330fc
fix(path): don't remove trailing slash when getting absolute path ( #20853 )
...
Before Vim patch 8.2.3468 relative_directory is never used in the
resulting path name, so whether it has a trailing slash didn't matter.
Now path_full_dir_name() appends a non-existing relative directory to
the current directory name, so the trailing slash needs to be kept.
2022-10-30 07:10:04 +08:00
Lewis Russell
0ef6aaa3a7
refactor: clint ( #20600 )
2022-10-12 14:53:40 +01:00
dundargoc
df646572c5
docs: fix typos ( #20394 )
...
Co-authored-by: Raphael <glephunter@gmail.com >
Co-authored-by: smjonas <jonas.strittmatter@gmx.de >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-30 09:53:52 +02:00
dundargoc
6d557e324f
vim-patch:8.1.0941: macros for MS-Windows are inconsistent ( #20215 )
...
Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and
others.
Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the
GUI build. (Hirohito Higashi, closes vim/vim#3932 )
4f97475d32
2022-09-18 09:17:15 +08:00
bfredl
f6232e160b
Merge pull request #20077 from dundargoc/refactor/char_u/11
...
refactor: replace char_u with char 11: remove `STRLEN` part 1
2022-09-12 21:50:31 +02:00
zeertzjq
a48e42a29d
vim-patch:8.2.4671: 'wildignorecase' is sometimes not used for glob() ( #20165 )
...
Problem: 'wildignorecase' is sometimes not used for glob().
Solution: Also use 'wildignorecase' when there are no wildcards.
(closes vim/vim#10066 , closes vim/vim#8350 )
a3157a476b
2022-09-12 19:09:23 +08:00
Dundar Göc
3ff46544c9
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-11 13:28:59 +02:00
Dundar Göc
684bc749ef
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-10 11:17:40 +02:00
Dundar Göc
73207cae61
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-06 16:44:37 +02:00
dundargoc
12afc344de
refactor: migrate comment style 2 #20080
2022-09-06 07:23:00 -07:00
zeertzjq
c62e5b5079
vim-patch:9.0.0362: expanding ":e %" does not work for remote files
...
Problem: Expanding ":e %" does not work for remote files.
Solution: If the "%" or "#" file does not exist add the expansion anyway.
f5724376ab
2022-09-03 09:01:09 +08:00
Lewis Russell
1ffd527c83
refactor: migrate comment style ( #20012 )
...
Done automatically using the following perl command:
perl -pi -0777pe 's#\n\K */\*\n(.+?)\s*\*/\n#join("\n", map { $_ =~ s:^\s*\K \*://:; $_ } split("\n", $1)) . "\n"#sge' src/nvim/**/*.c
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-02 17:39:49 +01:00
Dundar Göc
49e893f296
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-01 10:47:42 +02:00
Dundar Göc
bd51ac2a34
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-31 21:17:10 +02:00
Dundar Göc
fb1edb2f57
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-31 13:47:18 +02:00
dundargoc
2828aae7b4
refactor: replace char_u with char 4 ( #19987 )
...
* refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2022-08-30 14:52:09 +02:00
Dundar Göc
58f30a326f
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-29 15:48:56 +02:00
Dundar Göc
3952770360
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-26 22:24:28 +02:00
Lewis Russell
2498e9feb0
refactor: change FALSE/TRUE to false/true
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-26 09:36:55 +01:00
Dundar Goc
40855b0143
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-25 18:59:12 +02:00
Lewis Russell
93f24403f8
refactor: pre-incr to post-incr
2022-08-25 13:10:41 +01:00
sigmaSd
a4e4609d62
fix(path): path_is_url returns false for "foo:/" #19797
...
Problem:
path_to_url() returns false for single-slash URIs ("foo:/" vs "foo://").
This is not compliant with the URI spec. https://url.spec.whatwg.org/#url-representation
LSP in particular allows single-slash URIs.
Solution:
Relax path_to_url() to accept single-slash URIs. This is not fully
compliant (only ":" is required by the spec), but it is hopefully good
enough without causing false-positives in typical text files.
ref https://url.spec.whatwg.org/#windows-drive-letter
ref https://github.com/neovim/neovim/pull/19773
ref https://github.com/neovim/neovim/pull/19773#issuecomment-1214763769
2022-08-23 23:38:06 -07:00
zeertzjq
f1b8683b8c
vim-patch:8.2.4841: empty string considered an error for expand()
...
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 vim/vim#10307 )
a96edb736d
2022-08-23 17:48:12 +08:00
zeertzjq
76d35a5a36
vim-patch:9.0.0231: expanding "**" may loop forever with directory links ( #19866 )
...
Problem: Expanding "**" may loop forever with directory links.
Solution: Check for being interrupted. (closes vim/vim#10946 )
57e95179ab
2022-08-21 07:08:09 +08:00
zeertzjq
0d0a336c53
vim-patch:8.1.1886: command line expansion code is spread out ( #19861 )
...
Problem: Command line expansion code is spread out.
Solution: Move the code to cmdexpand.c. (Yegappan Lakshmanan, closes vim/vim#4831 )
66b51420e0
2022-08-21 06:33:24 +08:00
Lewis Russell
542fa8a9cc
refactor: change pre-decrement/increment to post ( #19799 )
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-16 12:26:08 +01:00
Dundar Goc
094cdf2d69
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-12 14:22:02 +02:00
Dundar Goc
824a729628
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-31 00:52:59 +02:00