Dundar Göc
7e3bdc75e4
refactor(uncrustify): format all c files
2022-03-10 09:14:12 +01:00
bfredl
850b3e19c9
refactor(lua): cleanup and docs for threads
2022-02-26 15:00:13 +01:00
erw7
b87867e69e
feat(lua): add proper support of luv threads
2022-02-26 14:01:38 +01:00
shadmansaleh
f292dd2126
fix: autoload variables not loaded with vim.g & nvim_get_var
2022-02-13 01:23:23 +06:00
Lewis Russell
e11a44aa22
feat(lua): add vim.spell ( #16620 )
2021-12-25 12:36:56 -07:00
Michael Lingelbach
326e74571b
Merge pull request #16666 from mjlbach/fix/bad-cast
2021-12-15 13:56:41 -08:00
Michael Lingelbach
fcbffcd92a
chore: improve naming consistency in str_utf_start
2021-12-15 09:07:23 -08:00
Michael Lingelbach
1a887293ef
fix: do not cast offset to char_u
...
* str_utf_start/end both cast the offset into the utf string
to a char_u, a pointer + long is well-defined and the cast is
unnecessary. This previously resulted in issues for offsets greater than
256.
2021-12-15 09:07:23 -08:00
Björn Linse
df54d82b7c
refactor(misc1): move out high-level input functions to a new file: input.c
...
Possibly dialog code is messages.c could be moved here as well.
misc1.c is now empty, so delete it.
2021-12-10 18:15:33 +01:00
Michael Lingelbach
512ec4632f
fix: allow str_utfindex second argument to be an explicit nil ( #16448 )
...
* str_utfindex checks number of arguments only, but ignores the case in
which the second argument is an explicit nil. Previously this required
dropping the second argument entirely.
* Modify the C binding to explicitly check if the second argument is nil
2021-11-27 10:07:58 -05:00
dundargoc
a68faed02d
refactor: saner options for uncrustify #16196
...
* refactor: general good option changes
sp_deref = remove
sp_not = remove
sp_inv = remove
sp_inside_paren_cast = remove
mod_remove_duplicate_include = true
sp_after_semi = add
sp_after_semi_for = force
sp_sizeof_paren = remove
nl_return_expr = remove
nl_else_brace = remove
nl_else_if = remove
* refactor: mod_remove_extra_semicolon = true
* refactor: nl_max = 3
* refactor: sp_bool = force
* refactor: sp_compare = force
* refactor: sp_inside_paren = remove
* refactor: sp_paren_paren = remove
* refactor: sp_inside_sparen = remove
* refactor: sp_before_sparen = force
* refactor: sp_sign = remove
* refactor: sp_addr = remove
* refactor: sp_member = remove
* refactor: nl_struct_brace = remove
* refactor: nl_before_if_closing_paren = remove
* refactor: nl_fdef_brace = force
* refactor: sp_paren_comma = force
* refactor: mod_full_brace_do = add
2021-10-31 17:03:08 -07:00
Michael Lingelbach
2230b578d1
feat: add vim.str_utf_{start,end} ( #16129 )
...
vim.str_utf_{start,end} return the offset from the current position to
the start and end of the current utf-character (nearest codepoint)
respectively.
2021-10-30 10:30:40 -07:00
Dundar Göc
13d331ef0d
refactor: split executor.c into two files
2021-10-26 21:04:52 +02:00