Björn Linse
0039ba04b0
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
2021-11-14 12:49:12 +01:00
Björn Linse
9f27e6cbe7
refactor(multibyte): eliminate mb_char2cells alias for utf_char2cells
2021-11-14 12:49:09 +01:00
Björn Linse
77c54fc995
Merge pull request #16155 from zeertzjq/fix-redr-border-corruption
...
fix(float): fix potential heap corruption in win_redr_border
2021-11-06 22:32:28 +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
zeertzjq
de670f3809
fix(float): fix potential heap corruption in win_redr_border
2021-10-28 06:32:36 +08:00
Björn Linse
c8882ca7e7
refactor(api): move extmark API to its own file
2021-10-25 22:33:40 +02:00
Jan Edmund Lazo
bb9e6a1583
Merge pull request #16111 from dundargoc/vim-patch/comments
...
vim-patch:8.1.2368,8.1.2378,8.1.2379,8.1.2380,8.1.2387,8.1.2388,8.1.2392,8.1.2394,8.1.2395,8.1.2396
2021-10-23 13:05:19 -04:00
Björn Linse
8d7816cf27
feat(decorations): support more than one virt_lines block
2021-10-23 14:17:09 +02:00
Dundar Göc
daf670dde6
vim-patch:8.1.2394: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
63d9e730f7
2021-10-21 12:07:14 +02:00
Dundar Göc
6059784770
refactor: remove space after star
2021-10-19 15:20:33 +02:00
Famiu Haque
9086938f7b
feat(api): evaluate statusline string #16020
...
Adds API function `nvim_eval_statusline` to allow evaluating a
statusline string and obtaining information regarding it.
Closes https://github.com/neovim/neovim/issues/15849
2021-10-18 12:44:17 -07:00
Jan Edmund Lazo
77e6ecf85a
Merge pull request #15930 from dundargoc/vim-patch/old-style-c-comments
...
vim-patch:8.1.2396,8.1.2395,8.1.2394,8.1.2392,8.1.2368,8.1.2388,8.1.2379
2021-10-17 10:21:40 -04:00
Dundar Göc
24a1880866
refactor: reduce number of unique char casts
2021-10-13 18:26:18 +02:00
dundargoc
649b3160a1
refactor: reduce number of unique char casts ( #15995 )
2021-10-12 17:52:54 +02:00
Dundar Göc
41d3b98deb
vim-patch:8.1.2394: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
63d9e730f7
2021-10-06 11:50:10 +02:00
dundargoc
9c268263b1
refactor: format with uncrustify #15842
...
* refactor: format with uncrustify
* refactor: convert function comments to doxygen
2021-10-02 07:59:41 -07: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
Björn Linse
392c658d4d
feat(decorations): support virtual lines (for now: only one block at a time)
2021-09-26 12:19:54 +02:00
dundargoc
2f9b9e61d7
refactor: format with uncrustify #15778
...
* fixup: force exactly one whitespace between type and variable
2021-09-25 17:16:04 -07:00
zeertzjq
51567db4b6
vim-patch:8.2.3424: a sequence of spaces is hard to see in list mode
...
Problem: A sequence of spaces is hard to see in list mode.
Solution: Add the "multispace" option to 'listchars'. (closes vim/vim#8834 )
f14b8ba137
2021-09-19 13:13:44 +08:00
zeertzjq
59e80c4dfc
vim-patch:8.1.1110: composing chars on space wrong when 'listchars' is set
...
Problem: Composing chars on space wrong when 'listchars' is set.
Solution: Do not use "space" and "nbsp" entries of 'listchars' when there is
a composing character. (Yee Cheng Chin, closes vim/vim#4197 )
e5e4e22c1c
2021-09-19 13:13:44 +08:00
zeertzjq
32663b0f7e
vim-patch:8.1.1078: when 'listchars' is set a composing char on a space is wrong
...
Problem: When 'listchars' is set a composing char on a space is wrong.
Solution: Separate handling a non-breaking space and a space. (Yasuhiro
Matsumoto, closes vim/vim#4046 )
5f8069bbf5
2021-09-19 13:13:44 +08:00
dundargoc
1f49268c46
refactor: convert TRUE/FALSE to true/false ( #15660 )
2021-09-18 00:24:39 +02:00
dundargoc
b8cce77702
fix: "redundant cast to the same type" #15662
...
Apply "redundant cast to the same type" fix from clangd.
2021-09-14 04:07:08 -07:00
dundargoc
d5b66e8860
refactor: replace TRUE/FALSE with true/false #15647
2021-09-13 04:57:36 -07:00
Justin M. Keyes
7525052270
Merge #15626 vim-patch:8.1.{2281,2283},8.2.{2903,3391,3397}
2021-09-10 08:43:45 -07:00
Sean Dewar
6e1c03bd2d
vim-patch:8.2.3391: crash with combination of 'linebreak' and other options
...
Problem: Crash with combination of 'linebreak' and other options.
Solution: Avoid n_extra to become negative. (Christian Brabandt,
closes vim/vim#8817 )
20e0c3d27b
2021-09-10 15:52:07 +01:00
Sean Dewar
b91609a70d
vim-patch:8.2.2903: cursor position wrong on wrapped line with 'signcolumn'
...
Problem: Cursor position wrong on wrapped line with 'signcolumn'.
Solution: Don't add space for showbreak twice. (Christian Brabandt,
closes vim/vim#8262 )
a06e345af5
Add a modeline to test_display.vim.
This introduced a regression fixed by v8.2.3391.
2021-09-10 15:52:07 +01:00
Sean Dewar
fd1dbb103b
vim-patch:8.1.2281: 'showbreak' cannot be set for one window
...
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
ee85702c10
Change in oneleft() is N/A as the relevant condition was removed
(has_mbyte is always true for Nvim, so the condition was always false;
see commit 73dc9e9
).
Use wp over curwin for curs_columns().
Required for v8.2.2903 (otherwise test fails as it'll leave the global
option set).
N/A patches for version.c:
vim-patch:8.1.2283: missed on use of p_sbr
Problem: Missed on use of p_sbr.
Solution: Add missing p_sbr change.
91e22eb6e0
Already ported in commit 43a874a
.
2021-09-10 15:50:43 +01:00
dundargoc
3b3dbcf7b7
refactor: format files with uncrustify #15607
2021-09-10 06:14:15 -07:00
Dundar Göc
1e49a1c888
refactor: format files with uncrustify
2021-09-07 19:07:51 +02:00
Jit
db695cc4ca
fix(screen): missing search highlights when redrawing from timer #15380
...
* Revert "vim-patch:8.1.2294: cursor pos wrong with concealing and search causes a scroll"
* Add a test which covers #13074 910bbc3cca
while reverting the screen.c code changes from there.
Fixes #14064
2021-09-06 15:18:33 -07:00
Björn Linse
274248c354
refactor(screen): let win_line() always handle fillers after last line
2021-09-05 11:22:45 +02:00
Dundar Göc
15af08ad17
refactor: update uncrustify config and format screen.c
...
Also set new option cmt_trailing_single_line_c_to_cpp to true. It
converts trailing, single-line c-comments (/**/) into cpp-comments (//).
2021-09-03 21:23:23 +02:00
Dundar Göc
2d240024ac
refactor: format screen.c with uncrustify
2021-08-28 16:18:36 +02:00
zeertzjq
32024787b6
vim-patch:8.1.2229: color number column above/below cursor #15409
...
Problem: Cannot color number column above/below cursor differently.
Solution: Add LineNrAbove and LineNrBelow. (Shaun Brady, closes vim/vim#624 )
efae76ab1a
2021-08-27 05:50:37 -07:00
dundargoc
db1b0ee3b3
refactor: replace TRUE/FALSE with true/false #15425
2021-08-22 07:10:57 -07:00
Björn Linse
7bff642169
Merge pull request #15249 from dundargoc/refactor/a-song-of-true-and-false
...
refactor: replace TRUE/FALSE with true/false
2021-08-18 10:10:42 +02:00
zeertzjq
e9dd640897
vim-patch:8.2.3295: 'cursorline' should not apply to 'breakindent' #15281
...
Problem: 'cursorline' should not apply to 'breakindent'.
Solution: Make 'cursorline' apply to 'breakindent' and 'showbreak'
consistently. (closes vim/vim#8684 )
4f33bc20d7
2021-08-16 00:27:04 -07:00
Dundar Göc
c0767bd4f3
refactor: replace TRUE/FALSE with true/false
2021-08-12 10:37:40 +02:00
Björn Linse
7f71e8a6b3
refactor(plines): move out plines related code from misc1.c
2021-08-10 22:59:29 +02:00
Björn Linse
a177c7df09
refactor(plines): remove implicit curwin plines() function
2021-08-10 22:32:08 +02:00
zeertzjq
c24daf5a10
vim-patch:8.2.3204: display garbled when 'cursorline' is set and lines wrap
...
Problem: Display garbled when 'cursorline' is set and lines wrap. (Gabriel
Dupras)
Solution: Avoid inserting lines twice.
c9e7e344ed
2021-08-02 05:41:17 +08:00
zeertzjq
68f0670dfc
vim-patch:8.1.2214: too much is redrawn when 'cursorline' is set
...
Problem: Too much is redrawn when 'cursorline' is set.
Solution: Don't do a complete redraw. (closes vim/vim#5079 )
11a58af66f
2021-08-02 05:41:17 +08:00
zeertzjq
56b437a6c7
vim-patch:8.1.2117: CursorLine highlight used while 'cursorline' is off
...
Problem: CursorLine highlight used while 'cursorline' is off.
Solution: Check 'cursorline' is set. (cloes vim/vim#5017 )
49474ca122
2021-08-02 05:41:17 +08:00
zeertzjq
1666fe9dfe
vim-patch:8.1.2029: cannot control 'cursorline' highlighting well
...
Problem: Cannot control 'cursorline' highlighting well.
Solution: Add "screenline". (Christian Brabandt, closes vim/vim#4933 )
017ba07fa2
2021-08-02 05:41:17 +08:00
zeertzjq
5f01714b25
vim-patch:8.1.2019: 'cursorline' always highlights the whole line ( #15161 )
...
Problem: 'cursorline' always highlights the whole line.
Solution: Add 'cursorlineopt' to specify what is highlighted.
(closes vim/vim#4693 )
410e98a70b
2021-07-30 21:51:26 -04:00
Björn Linse
15698eb5a1
Merge pull request #15206 from dundargoc/refactor/a-song-of-true-and-false/global-variables-2
...
refactor: replace TRUE/FALSE with true/false
2021-07-30 17:53:07 +02:00
Dundar Göc
94120d2fd5
refactor: replace TRUE/FALSE with true/false
2021-07-30 12:29:32 +02:00