ii14
2d78e656b7
refactor: remove redundant casts
2023-04-07 21:43:00 +02:00
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
dundargoc
d510bfbc8e
refactor: remove char_u ( #22829 )
...
Closes https://github.com/neovim/neovim/issues/459
2023-04-02 16:11:42 +08:00
Lewis Russell
e1db0e35e4
feat(api): add filetype option nvim_get_option_value
...
- Also adjust the expr-mapping behaviour so normal commands and text
changes are allowed in internal dummy buffers.
2023-03-20 10:00:52 +00:00
dundargoc
6cab36e5b7
refactor: replace char_u with char or uint8_t ( #22400 )
...
Work on https://github.com/neovim/neovim/issues/459
2023-03-04 20:10:00 +08:00
zeertzjq
f113cba3ec
refactor(getchar.c): change most char_u to uint8_t ( #22444 )
2023-02-28 08:49:02 +08:00
zeertzjq
8784f064f1
vim-patch:9.0.1329: completion of map includes simplified ones ( #22335 )
...
Problem: Completion of map includes simplified ones.
Solution: Do not complete simplified mappings. (closes vim/vim#12013 )
997b8a015c
2023-02-20 08:24:49 +08:00
zeertzjq
75dab3cf07
fix(mappings): make "<" escaping in completion match Vim
2023-02-18 07:05:48 +08:00
zeertzjq
df666521ac
fix(mappings): fix check for cpo-B inverted in completion
2023-02-17 08:47:44 +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
dundargoc
c8c930ea78
refactor: reduce scope of locals as per the style guide ( #22206 )
2023-02-11 10:24:46 +01:00
zeertzjq
e86d2734a9
refactor: use uint8_t for blobs and ga_append() ( #21916 )
...
A blob is used as a sequence of bytes and usually accessed individually,
not as as a NUL-terminuated string, so uint8_t should be better.
Not sure about ga_append(), but using uint8_t leads to fewer casts.
2023-01-21 09:24:09 +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
132f001ce8
vim-patch:8.2.4483: command completion makes two rounds to collect matches ( #21857 )
...
Problem: Command completion makes two rounds to collect matches.
Solution: Use a growarray to collect matches. (Yegappan Lakshmanan,
closes vim/vim#9860 )
5de4c4372d
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2023-01-17 19:52:02 +08:00
zeertzjq
5ce6685119
vim-patch:8.2.4479: no fuzzy completieon for maps and abbreviations
...
Problem: No fuzzy completieon for maps and abbreviations.
Solution: Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan,
closes vim/vim#9856 )
6caeda2fce
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2023-01-17 14:01:26 +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
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
zeertzjq
357aab4c65
fix(mappings): use all buckets in second round of unmap ( #21534 )
2022-12-26 11:20:37 +08:00
zeertzjq
9be24110f6
vim-patch:8.2.4139: using freed memory in expression abbreviation ( #21522 )
...
Problem: Using freed memory if an expression abbreviation deletes the
abbreviation.
Solution: Do not access the pointer after evaluating the expression.
94075b2b0e
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2022-12-24 16:32:50 +08:00
dundargoc
ec1738a6ed
refactor: replace char_u with char 16 - remove STRNCMP ( #21208 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2022-12-21 19:00:05 +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
40f3f75867
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-19 16:27:10 +01:00
Gregory Anders
6d9c3d903e
refactor: deprecate 'secure' option
...
Now that 'exrc' files must be explicitly marked trusted there is no need
to constrain what can be done in them.
2022-11-17 08:23:41 -07: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
4716a578ae
docs: fix typos
2022-11-02 21:45:26 +08: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
Justin M. Keyes
63be765182
fix(docs): invalid :help links #20345
...
Fix those naughty single quotes.
closes #20159
2022-09-25 16:58:27 -07:00
zeertzjq
291a649632
fix(mapset): remove existing abbreviation of same lhs ( #20320 )
2022-09-24 21:07:18 +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
bfredl
d9a873f278
Merge pull request #20038 from bfredl/unflush
...
perf(messages): don't call ui_flush() per message line in various places
2022-09-01 10:18:14 +02:00
bfredl
5f92d9b345
perf(messages): don't call ui_flush() per message line in various places
...
When msgsep is used, message scrolling is emulated. To make message
output fast, inhibit emulated scrolling until the full message text
is known
2022-09-01 09:44:01 +02:00
zeertzjq
a62cb406b1
fix(maparg): remove double allocation ( #20033 )
...
ASAN doesn't catch this, as it is referenced by the garbage collector.
Also remove a condition that is always true.
2022-09-01 10:22:28 +08:00
zeertzjq
0c6b39894f
feat(mapset): support restoring Lua callback ( #20024 )
...
vim-patch:9.0.0341: mapset() does not restore <Nop> mapping properly
Problem: mapset() does not restore <Nop> mapping properly.
Solution: Use an empty string for <Nop>. (closes vim/vim#11022 )
92a3d20682
2022-09-01 06:19:49 +08:00
bfredl
f078a3453a
Merge pull request #20007 from dundargoc/refactor/char_u/5
...
refactor: replace char_u with char 5
2022-08-31 20:50:43 +02:00
zeertzjq
933c80e8f9
refactor(mappings)!: mapblock_fill_dict() use API Dictionary ( #20020 )
...
This introduces the following breaking changes:
- nvim_get_keymap now always returns a LuaRef object as "callback" for a
Lua mapping regardless of how it is called. The LuaRef object can be
called from Lua and Vim script, but is lost over RPC.
- maparg() now returns a Funcref instead of a ref number as "callback"
for a Lua mapping. The Funcref can be called from Lua and Vim script,
but is lost over RPC.
This may also make nvim_get_keymap faster, but make maparg() slower.
2022-08-31 21:14:14 +08: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
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
dundargoc
09c6ce8c4e
docs: fix typos ( #19798 )
...
Co-authored-by: adrian5 <adrian5@users.noreply.github.com >
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com >
2022-08-27 15:56:58 +08: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
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
bfredl
c0d6052654
perf(api): allow to use an arena for return values
2022-08-23 18:34:24 +02:00
zeertzjq
f52c236c5b
vim-patch:8.2.0056: execution stack is incomplete and inefficient
...
Problem: Execution stack is incomplete and inefficient.
Solution: Introduce a proper execution stack and use it instead of
sourcing_name/sourcing_lnum. Create a string only when used.
1a47ae32cd
Omit test_debugger.vim: superseded by later patches.
Omit check_map_keycodes(): N/A.
Omit kword_test.c: N/A (converted to a unit test).
2022-08-14 04:29:44 +08: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
zeertzjq
94c3176478
refactor: use CLEAR_FIELD and CLEAR_POINTER macros ( #19709 )
...
vim-patch:8.2.0559: clearing a struct is verbose
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
a80faa8930
2022-08-11 15:44:55 +08:00