Dundar Goc
85aae12a6d
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-11 23:19:57 +02:00
Dundar Goc
e31b32a293
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-09 10:03:29 +02:00
Dundar Goc
2a378e6e82
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-07 14:54:01 +02:00
Dundar Goc
9a671e6a24
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-05 18:10:46 +02:00
Dundar Goc
eef8de4df0
refactor(uncrustify): change rules to better align with the style guide
...
Add space around arithmetic operators '+' and '-'.
Remove space between back-to-back parentheses, i.e. ')(' vs. ') ('.
Remove space between '((' or '))' of control statements.
Add space between ')' and '{' of control statements.
Remove space between function name and '(' on function declaration.
Collapse empty blocks between '{' and '}'.
Remove newline at the end of the file.
Remove newline between 'enum' and '{'.
Remove newline between '}' and ')' in a function invocation.
Remove newline between '}' and 'while' of 'do' statement.
2022-04-29 14:13:06 +02:00
dundargoc
c582194135
refactor: add pure attribute to pure functions ( #18165 )
...
This will allow the compilers that support the pure attribute to make
further optimizations.
2022-04-24 20:12:47 -06:00
Sean Dewar
9f4401897a
vim-patch:8.2.4418: crash when using special multi-byte character
...
Problem: Crash when using special multi-byte character.
Solution: Don't use isalpha() for an arbitrary character.
5921aeb574
Rename vim_isalpha to mb_isalpha.
2022-02-19 15:29:17 +00:00
zeertzjq
ff81725ff0
refactor(mbyte.c): add const qualifiers
...
This only touches functions that do not return a pointer.
Also add a note about the differences between mb_head_off() and utf_head_off().
2022-02-09 09:52:57 +08:00
zeertzjq
530c65b17a
Merge pull request #16830 from kuuote/vim-8.2.3571
2022-01-28 12:21:15 +08:00
zeertzjq
6e69a3c3e7
refactor: remove CSI unescaping and clean up related names and comments
2022-01-21 18:08:56 +08:00
kuuote
9d37b0998f
vim-patch:8.2.3571: some unicode control characters are considered printable
...
Problem: Some unicode control characters are considered printable.
Solution: Make 0x2060 - 0x2069 not printable.
2021-12-30 12:53:38 +09:00
zeertzjq
f59f81c32e
vim-patch:8.2.3825: various comments could be improved
...
Problem: Various comments could be improved.
Solution: Improve the comments.
52797bae17
2021-12-16 23:05:52 +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
Björn Linse
c88555418a
refactor(misc1): move way beep functions elsewhere
2021-12-10 17:11:45 +01:00
dundargoc
725cbe7d41
refactor: saner options for uncrustify ( #16204 )
...
* sp_enum_after_assign = force
* sp_brace_typedef = force
* nl_do_brace = remove
* sp_do_brace_open = force
* sp_brace_close_while = force
* sp_before_semi = remove
* sp_before_semi_for = remove
* sp_before_semi_for_empty = remove
* sp_between_semi_for_empty = remove
* sp_after_semi_for_empty = remove
* sp_before_square = remove
* sp_before_squares = remove
* sp_inside_square = remove
* sp_inside_fparens = remove
* sp_inside_fparen = remove
* sp_inside_tparen = remove
* sp_after_tparen_close = remove
* sp_return_paren = force
* pos_bool = lead
* sp_pp_concat = remove
* sp_pp_stringify = remove
* fixup: disable formatting for the INIT section
2021-11-19 14:21:53 -05:00
Björn Linse
1450a6f753
refactor(macroman): get rid of MB_COPY_CHAR macro
...
clean up docs for MB_PTR_ADV and MB_PTR_BACK
2021-11-14 17:08:50 +01:00
Björn Linse
54ff21a153
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 16:33:12 +01:00
Björn Linse
0039ba04b0
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
2021-11-14 12:49:12 +01:00
James McCoy
e6ff154be6
vim-patch:8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
32526b3c18
2021-11-01 06:41:29 -04: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
df27579f54
vim-patch:8.1.2388: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
4ba37b5833
2021-10-21 12:07:14 +02:00
Dundar Göc
3b3e2244db
vim-patch:8.1.2388: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
4ba37b5833
2021-10-06 11:50:10 +02:00
dundargoc
d90fb1c0bf
Refactor/uncrustify ( #15790 )
...
* refactor: format with uncrustify
* fixup(dundar): fix functions comments
* fixup(dundar): remove space between variable and ++/--
* fixup(dundar): better workaround for macro attributes
This is done to be able to better use uncrustify rules for macros
* fixup(justin): make preprocessors follow neovim style guide
2021-09-29 19:48:50 +02:00
dundargoc
f4ca3a29dd
refactor: reformat with uncrustify #15736
...
* fix function parameter comments
* remove space after star in function names
2021-09-20 09:35:41 -07:00
dundargoc
3b3dbcf7b7
refactor: format files with uncrustify #15607
2021-09-10 06:14:15 -07:00
Jan Edmund Lazo
de74fcc74c
fixup! remove DYNAMIC_ICONV
...
Code for "DYNAMIC_ICONV" macro was dead since v0.3.0.
d87e5d7016
2021-08-01 11:27:11 -04:00
Dundar Göc
11dcf15682
refactor: replace TRUE/FALSE macros with C99 true/false
2021-07-25 21:51:50 +02:00
Björn Linse
243820ebd0
floats: add borders (MS-DOS MODE)
2021-03-22 23:18:40 +01:00
Jan Edmund Lazo
2894649c2e
vim-patch:8.2.0901: formatting CJK text isn't optimal
...
Problem: Formatting CJK text isn't optimal.
Solution: Properly break CJK lines. (closes vim/vim#3875 )
e52702f003
2020-10-23 08:57:16 -04:00
Jan Edmund Lazo
ce99d049e7
vim-patch:8.2.1547: various comment problems
...
Problem: Various comment problems.
Solution: Update comments.
02c037a4be
2020-10-18 12:25:48 -04:00
Justin M. Keyes
1b0a770340
Merge #11805 'vim-patch:8.1.0619'
2020-02-29 17:37:15 -08:00
cyy
1656367b90
win/l10n: add zh-* locale aliases #11963
2020-02-29 14:11:57 -08:00
Jan Edmund Lazo
4add2f4f89
vim-patch:8.0.1550: various small problems in source files
...
Problem: Various small problems in source files.
Solution: Fix the problems.
792f0e3659
2019-09-07 10:35:09 -04:00
Justin M. Keyes
07cc72ad5d
utf16_to_utf8: align with libuv
...
- take a size parameter
- return libuv error code
- handle error in caller only (avoid redundant messages)
53995a3825
4c945f4936
2019-08-15 00:28:41 +02:00
Justin M. Keyes
8727f7a6a4
utf8_to_utf16: align with libuv
...
- take a size parameter
- always NUL-terminate the result
- return libuv error code
- handle error in caller only (avoid redundant messages)
53995a3825
4c945f4936
2019-08-15 00:28:41 +02:00
Justin M. Keyes
8a56bd944a
Merge #10708 'remove DYNAMIC_ICONV'
...
closes #3457
2019-08-09 11:19:37 +02:00
Björn Linse
1f54f68732
lua: minimal UTF-16 support needed for LSP
2019-08-08 20:10:14 +02:00
Björn Linse
c0993ed343
lua: support getting UTF-32 and UTF-16 sizes of replaced text
2019-08-06 20:24:36 +02:00
erw7
d6f15ccc3c
remove DYNAMIC_ICONV
2019-08-06 12:44:22 +09:00
Justin M. Keyes
04e2ba85b1
doc [ci skip] #10129
...
- document lua vim.loop #10123
2019-06-10 15:53:42 +02:00
Andrej Zieger
80f40f0203
lint
2019-05-26 19:32:32 +02:00
Justin M. Keyes
ae846b41df
vim-patch:8.0.1496: VIM_CLEAR()
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
vim-patch:8.0.1481
2019-05-25 10:07:05 +02:00
Jan Edmund Lazo
09120df890
lint
2019-04-12 23:44:31 -04:00
Jan Edmund Lazo
210fa1e02d
vim-patch:8.1.1156: Unicode emoji and other image characters not recognized
...
Problem: Unicode emoji and other image characters not recognized.
Solution: Add ranges for musical notation, game pieces, etc. (Martin
Tournoij, closes vim/vim#4238 )
d489c9801b
2019-04-12 19:55:11 -04:00
Björn Linse
be8ebba325
Allow using internal popupmenu or ext_popupmenu for wildmenu
...
Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor
position), and will allow further expansion (info about items).
2019-03-16 19:53:21 +01:00
Justin M. Keyes
ed4132d7e9
cleanup: remove legacy enc_dbcs
global #9660
2019-03-02 02:33:36 +01:00
Justin M. Keyes
76562fa192
utf16_to_utf8: minor fixes
2019-02-25 23:47:54 +01:00
Björn Linse
820c81e638
multigrid: various cleanup (types, unused parameters)
...
Handle the rare case of full highlight table properly
2018-12-31 16:24:07 +01:00
Björn Linse
1a896bc93f
multigrid: avoid allocation when not ext_multigrid.
...
Move grid specific functions from mbyte.c to screen.c
2018-12-31 12:44:22 +01:00