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
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
zeertzjq
1de62b9ea1
fix(charclass): make behavior with empty str match latest Vim ( #19749 )
...
Later Vim patches changed to return 0 for empty string and null string.
Also update setcellwidth() docs to match latest Vim.
2022-08-13 12:25:01 +08:00
zeertzjq
754892e59d
vim-patch:8.2.{1536,1540}: charclass() ( #19748 )
...
vim-patch:8.2.1536: cannot get the class of a character; emoji widths are wrong
Problem: Cannot get the class of a character; emoji widths are wrong in
some environments.
Solution: Add charclass(). Update some emoji widths. Add script to check
emoji widths.
4e4473c927
Use latest charclass() docs from Vim.
Rewrite DoIt() in emoji_list.vim in Lua.
Omit emoji table updates:
- emoji_width update looks wrong as these added ranges are only double-width when followed by 0xFE0F.
- Other updates are too old.
vim-patch:8.2.1540: the user cannot try out emoji character widths
Problem: The user cannot try out emoji character widths.
Solution: Move the emoji script to the runtime/tools directory.
98945560c1
2022-08-13 11:29:38 +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
24bf0490ea
vim-patch:9.0.0176: checking character options is duplicated and incomplete ( #19690 )
...
Problem: Checking character options is duplicated and incomplete.
Solution: Move checking to check_chars_options(). (closes vim/vim#10863 )
8ca29b6a35
2022-08-09 20:35:34 +08:00
zeertzjq
603f7bd253
fix(fillchars): change fallback after setcellwidths()
2022-08-08 20:03:40 +08:00
zeertzjq
9fedb6fd78
vim-patch:8.2.3545: setcellwidths() may make 'listchars' or 'fillchars' invalid
...
Problem: setcellwidths() may make 'listchars' or 'fillchars' invalid.
Solution: Check the value and give an error. (closes vim/vim#9024 )
94358a1e6e
Cherry-pick f_setcellwidths() change from patch 9.0.0036.
Cherry-pick 'ambiwidth' docs update from runtime update 079ba76ae7a7.
2022-08-08 20:03:40 +08:00
zeertzjq
01a7009af9
refactor(setcellwidths): use TV_LIST_ITEM_NEXT properly
2022-08-08 20:03:40 +08:00
zeertzjq
967415d527
vim-patch:8.2.1537: memory acccess error when using setcellwidths()
...
Problem: Memory acccess error when using setcellwidths().
Solution: Use array and pointers correctly.
b06a6d59d1
2022-08-08 20:03:40 +08:00
zeertzjq
53c9500c1d
vim-patch:8.2.1535: it is not possible to specify cell widths of characters
...
Problem: It is not possible to specify cell widths of characters.
Solution: Add setcellwidths().
08aac3c619
Co-Authored-By: delphinus <me@delphinus.dev >
2022-08-08 20:03:40 +08:00
dundargoc
c223875a65
refactor: rename function prefix mb to the more accurate utf_cp ( #19590 )
...
The "cp" stands for codepoint.
Closes https://github.com/neovim/neovim/issues/7401
2022-08-02 11:52:33 +02:00
Dundar Goc
335b49e129
refactor: enable -Wconversion warning for mbyte.c
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-27 13:14:33 +02:00
Dundar Goc
3b8804571c
refactor: replace char_u
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-02 16:01:27 +02:00
dundargoc
014a88799a
refactor: replace char_u #18429
...
Work on https://github.com/neovim/neovim/issues/459
2022-06-28 02:31:54 -07:00
dundargoc
9fec6dc9a2
refactor(uncrustify): set maximum number of consecutive newlines to 2 ( #18695 )
2022-05-25 12:31:14 -06:00
Lewis Russell
4c97e17d38
refactor: remove unused USE_WCHAR_FUNCTIONS #18618
...
USE_WCHAR_FUNCTIONS is never defined and we don't trust libc wchar
functions anyway.
2022-05-20 20:31:32 -07:00
Dundar Goc
f0148de790
refactor: replace char_u variables and functions with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-05-16 13:27:06 +02:00
bfredl
af9c1e572d
Merge pull request #18489 from dundargoc/refactor/remove-char_u
...
refactor: replace char_u variables and functions with char
2022-05-13 00:14:46 +02:00
zeertzjq
274f260806
vim-patch:8.2.4919: can add invalid bytes with :spellgood
...
Problem: Can add invalid bytes with :spellgood.
Solution: Check for a valid word string.
7c824682d2
2022-05-12 23:07:35 +08:00
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