dundargoc
5f72ab77bf
refactor: reduce scope of locals as per the style guide 3 ( #22221 )
...
refactor: reduce scope of locals as per the style guide
2023-02-12 18:48:49 +01: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
dundargoc
7224c889e0
build: enable MSVC level 3 warnings ( #21934 )
...
MSVC has 4 different warning levels: 1 (severe), 2 (significant), 3
(production quality) and 4 (informational). Enabling level 3 warnings
mostly revealed conversion problems, similar to GCC/clang -Wconversion
flag.
2023-02-11 10:25:24 +01:00
dundargoc
c8c930ea78
refactor: reduce scope of locals as per the style guide ( #22206 )
2023-02-11 10:24:46 +01:00
Lewis Russell
f08051c2e6
feat!: make iconv a non-optional dep
2023-01-23 16:33:45 +00:00
zeertzjq
efe5ce6fa8
vim-patch:9.0.1223: cannot use setcellwidths() below 0x100 ( #21929 )
...
Problem: Cannot use setcellwidths() below 0x100.
Solution: Also accept characters between 0x80 and 0x100. (Ken Takata,
closes vim/vim#11834 )
7193323b77
Co-authored-by: K.Takata <kentkt@csc.jp >
2023-01-21 08:44:14 +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
42d5142367
ci: enable CI_BUILD on windows ( #21557 )
...
This will ensure warnings are treated as errors when using MSVC.
Also fix const correctness warnings. The warnings in mbyte.c are false
positives that triggers this warning on MSVC v19.32 and lower, which our
CI still use. The (void *) casts can be removed once the CI MSVC version
has been upgraded to v19.33 or higher.
2023-01-18 20:23:46 +01: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
f4e03cbdbc
vim-patch:9.0.1212: cannot read back what setcellwidths() has done ( #21867 )
...
Problem: Cannot read back what setcellwidths() has done.
Solution: Add getcellwidths(). (Kota Kato, closes vim/vim#11837 )
66bb9ae70f
Co-authored-by: Kota Kato <github@kat0h.com >
2023-01-18 06:50:22 +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
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
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
08c2c74806
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 17:03:40 +08:00
dundargoc
3b96ccf7d3
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-28 14:53:35 +01: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
dundargoc
51a48d482e
refactor: remove __STDC_ISO_10646__ check
...
We can always assume wchar_t values are unicode codepoints for the
systems we support, so this check isn't necessary.
2022-11-17 16:12:34 +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
bfredl
fae7540732
Merge pull request #20821 from dundargoc/refactor/clang-tidy
...
refactor: fix clang-tidy warnings
2022-11-08 09:48:48 +01:00
Lewis Russell
bdb98de2d1
refactor: more clint ( #20910 )
2022-11-07 10:21:44 +00: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
dundargoc
b05d1943f0
build(lint): remove clint.py rules for braces #20880
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-11-01 07:39:49 -07:00
dundargoc
784e498c4a
refactor: clang-tidy fixes to silence clangd warning ( #20683 )
...
* refactor: readability-uppercase-literal-suffix
* refactor: readability-named-parameter
* refactor: bugprone-suspicious-string-compare
* refactor: google-readability-casting
* refactor: readability-redundant-control-flow
* refactor: bugprone-too-small-loop-variable
* refactor: readability-non-const-parameter
* refactor: readability-avoid-const-params-in-decls
* refactor: google-readability-todo
* refactor: readability-inconsistent-declaration-parameter-name
* refactor: bugprone-suspicious-missing-comma
* refactor: remove noisy or slow warnings
2022-10-21 20:47:44 +08: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
1e5daed676
Merge pull request #20164 from bfredl/luanull
...
fix(lua): make vim.str_utfindex and vim.str_byteindex handle NUL bytes
2022-09-13 23:17:11 +02:00
bfredl
25e4af439f
fix(lua): make vim.str_utfindex and vim.str_byteindex handle NUL bytes
...
fixes #16290
2022-09-13 22:50:22 +02: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
49aa9e17fa
vim-patch:8.2.2664: Vim9: not enough function arguments checked for string
...
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
32105ae88f
Cherry-pick removal of useless check from patch 8.2.3840.
vim-patch:8.2.3083: crash when passing null string to charclass()
Problem: Crash when passing null string to charclass().
Solution: Bail out when string pointer is NULL. (Christian Brabandt,
closes vim/vim#8498 , closes vim/vim#8260 )
72463f883c
2022-09-12 14:56:49 +08:00
zeertzjq
38059b4f31
vim-patch:8.2.2646: Vim9: error for not using string doesn't mention argument
...
Problem: Vim9: error for not using string doesn't mention argument.
Solution: Add argument number.
f28f2ac425
2022-09-12 14:56:42 +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
c5322e752e
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-09 21:02:42 +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
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
691f4715c0
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-27 17:59:43 +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
zeertzjq
fa1c761d62
vim-patch:9.0.0036: 'fillchars' cannot have window-local values
...
Problem: 'fillchars' cannot have window-local values.
Solution: Make 'fillchars' global-local. (closes vim/vim#5206 )
96ba25ac01
Cherry-pick g:run_nr from patch 8.2.0454.
N/A patches for version.c:
vim-patch:9.0.0037: build error
Problem: Build error.
Solution: Add missing change.
510f03738d
2022-08-26 10:14:59 +08: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
bfredl
f1ea126a6e
Merge pull request #19906 from bfredl/bigstage
...
perf(api): allow to use an arena for return values
2022-08-24 15:22:30 +02:00
bfredl
c0d6052654
perf(api): allow to use an arena for return values
2022-08-23 18:34:24 +02:00
zeertzjq
6cc6e11929
vim-patch:9.0.0206: redraw flags are not named specifically ( #19913 )
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
a4d158b3c8
2022-08-23 22:00:19 +08:00
zeertzjq
2af9be3db5
vim-patch:8.1.1966: some code in options.c fits better elsewhere ( #19840 )
...
Problem: Some code in options.c fits better elsewhere.
Solution: Move functions from options.c to other files. (Yegappan
Lakshmanan, closes vim/vim#4889 )
e677df8d93
2022-08-19 19:20:39 +08:00
Lewis Russell
51063a90df
vim-patch:8.1.2057: the screen.c file is much too big
...
Problem: The screen.c file is much too big.
Solution: Split it in three parts. (Yegappan Lakshmanan, closes vim/vim#4943 )
7528d1f6b5
This is an approximation vim-patch 8.1.2057. Applying the patch directly
isn't feasible since our version of screen.c has diverged too much,
however we still introduce drawscreen.c and drawline.c:
- screen.c is now a much smaller file used for low level screen functions
- drawline.c contains everything needed for win_line()
- drawscreen.c contains everything needed for update_screen()
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-19 10:01:40 +01:00
zeertzjq
bccb5de89d
vim-patch:8.2.3699: the +title feature adds a lot of #ifdef but little code ( #19809 )
...
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
651fca85c7
2022-08-17 12:44:31 +08:00
zeertzjq
65bcec9e9b
vim-patch:9.0.0220: invalid memory access with for loop over NULL string
...
Problem: Invalid memory access with for loop over NULL string.
Solution: Make sure mb_ptr2len() consistently returns zero for NUL.
f6d39c31d2
2022-08-17 09:07:12 +08:00