Lewis Russell
00effff569
vim-patch:8.1.1693: syntax coloring and highlighting is in one big file ( #17721 )
...
Problem: Syntax coloring and highlighting is in one big file.
Solution: Move the highlighting to a separate file. (Yegappan Lakshmanan,
closes vim/vim#4674 )
f9cc9f209e
Name the new file highlight_group.c instead.
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-03-18 12:47:08 +08:00
Dundar Göc
a41321a8a2
refactor(ex_cmds): convert function comments to doxygen format
2022-03-16 18:32:15 +01:00
TJ DeVries
991e472881
feat(lua): add api and lua autocmds
2022-02-27 22:04:55 +01:00
Sean Dewar
5c62bce7c1
vim-patch:8.2.4364: MS-Windows: still running out of memory for a very long line
...
Problem: MS-Windows: still running out of memory for a very long line.
Solution: Check for negative length.
4549166078
2022-02-12 22:25:39 +00:00
Sean Dewar
700af0ab1d
vim-patch:8.2.4362: :retab may allocate too much memory
...
Problem: :retab may allocate too much memory.
Solution: Bail out when allocating more than MAXCOL bytes.
33f3c59854
2022-02-12 21:23:06 +00:00
Sean Dewar
1b0d6bcd53
vim-patch:8.2.4359: crash when repeatedly using :retab
...
Problem: crash when repeatedly using :retab.
Solution: Bail out when the line is getting too long.
6e28703a8e
Cherry-pick e_resulting_text_too_long from v8.2.3492; put it in globals.h as
it will eventually be used in other files.
Add a modeline to test_retab.vim
2022-02-12 18:52:34 +00:00
Rom Grk
85ae04dbfd
fix: close floating windows when calling win_close()
2022-02-10 15:26:40 +00:00
Sean Dewar
ce797e08f5
vim-patch:8.2.2813: cannot grep using fuzzy matching
...
Problem: Cannot grep using fuzzy matching.
Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes vim/vim#8152 )
bb01a1ef3a
2022-02-07 17:20:51 +00:00
zeertzjq
8215c05945
Merge pull request #17194 from zeertzjq/inccommand-prev-sub
...
fix(inccommand): do not change reg_prev_sub when previewing
2022-02-06 10:18:59 +08:00
Dundar Göc
2793fcae0a
vim-patch:8.2.4241: some type casts are redundant
...
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes vim/vim#9643 )
420fabcd4f
This is not a literal port but an equivalent one.
2022-01-30 19:16:51 +01:00
Sean Dewar
815aa9f642
Merge pull request #16820 from seandewar/vim-8.1.2302
...
vim-patch:8.1.2302,8.2.{3936,4112}
2022-01-27 23:23:26 +00:00
f380cedric
5182627ce9
vim-patch:8.2.3669: buffer overflow with long help argument ( #16971 )
...
Problem: Buffer overflow with long help argument.
Solution: Use snprintf().
bd228fd097
2022-01-27 14:58:53 +01:00
Sean Dewar
5864edac7b
vim-patch:8.1.2302: :lockmarks does not work for '[ and ']
...
Problem: :lockmarks does not work for '[ and '].
Solution: save and restore '[ and '] marks. (James McCoy, closes vim/vim#5222 )
f4a1d1c054
Test_diff_maintains_change_mark doesn't actually fail without these changes.
This is fixed in v8.2.3936.
2022-01-27 18:47:52 +08:00
Christian Clason
b2b288f33c
vim-patch:8.2.4215: illegal memory access when copying lines in Visual mode
...
Problem: Illegal memory access when copying lines in Visual mode.
Solution: Adjust the Visual position after copying lines.
dc5490e2cb
2022-01-26 22:00:29 +01:00
zeertzjq
d11bbacf0f
fix(inccommand): do not change reg_prev_sub when previewing
2022-01-25 16:18:58 +08:00
zeertzjq
ba7b30080f
vim-patch:8.2.3952: first line not redrawn when adding lines to an empty buffer
...
Problem: First line not redrawn when adding lines to an empty buffer.
Solution: Adjust the argument to appended_lines(). (closes vim/vim#9439 ,
closes vim/vim#9438 )
1fa3de1ce8
2021-12-31 22:20:31 +08:00
dundargoc
6e00d4754c
vim-patch:8.2.3914 ( #16808 )
...
* vim-patch:8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes vim/vim#9416 )
af4a61a85d
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2021-12-28 11:28:48 +01:00
zeertzjq
06985fa595
vim-patch:8.2.3883: crash when switching to other regexp engine fails ( #16773 )
...
Problem: Crash when switching to other regexp engine fails.
Solution: Check for regprog being NULL.
5937c7505f
2021-12-25 19:02:54 -05: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
Jan Edmund Lazo
523f03b506
lint ( #16526 )
2021-12-05 23:33:22 -05: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
dundargoc
eba317d7a9
refactor: reduce number of explicit char casts ( #16077 )
...
* refactor: reduce number of explicit char casts
2021-11-16 20:27:59 +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
James McCoy
efa924f66b
vim-patch:8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
vim/vim#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
f9e3e09fdc
2021-11-01 06:41:28 -04:00
James McCoy
684640f551
vim-patch:8.1.0306: plural messages are not translated properly
...
Problem: Plural messages are not translated properly.
Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
da6e8919e7
2021-11-01 06:40:00 -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
Björn Linse
c8882ca7e7
refactor(api): move extmark API to its own file
2021-10-25 22:33:40 +02:00
Yorick Peterse
6acebb8b56
vim-patch:8.2.3547: opening the quickfix window triggers BufWinEnter twice ( #16108 )
...
Problem: Opening the quickfix window triggers BufWinEnter twice. (Yorick
Peterse)
Solution: Only trigger BufWinEnter with "quickfix". (closes vim/vim#9022 )
1d30fde3c9
2021-10-23 21:55:04 -04:00
Dundar Göc
f677ba4dab
vim-patch:8.1.2379: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
217e1b8359
2021-10-21 12:07:14 +02: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
b98383a250
fixup! vim-patch:8.1.2379: using old C style comments
2021-10-17 12:04:06 +02:00
Dundar Göc
88ef0d3de4
fixup! vim-patch:8.1.2379: using old C style comments
2021-10-16 17:50:51 +02: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
Björn Linse
ef687d3218
fix(buffer_updates): handle :sort of already sorted buffer
2021-10-08 16:15:35 +02:00
Dundar Göc
0c7d7fb45d
vim-patch:8.1.2379: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
217e1b8359
2021-10-06 11:50:10 +02:00
dundargoc
c273eb3100
refactor: replace sprintf with snprintf #15794
2021-09-26 07:53:51 -07: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
Jan Edmund Lazo
1ec3d37192
Merge pull request #15580 from seandewar/vim-8.2.3378
...
vim-patch:8.2.{3378,3379,3384,3386,3398,3400}
2021-09-17 09:39:36 -04: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
Sean Dewar
34cb087955
vim-patch:8.1.1355: obvious mistakes are accepted as valid expressions
...
Problem: Obvious mistakes are accepted as valid expressions.
Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto,
closes vim/vim#3981 )
16e9b85113
Update vim_str2nr_spec.lua to add more tests that use strict = true.
2021-09-11 15:33:19 +01:00
Sean Dewar
f46341fa43
vim-patch:8.2.3400: ":z!" is not supported
...
Problem: ":z!" is not supported.
Solution: Make ":z!" work and add tests. (Dominique Pellé, closes vim/vim#8836 )
Use display height instead of current window height.
7f2dd1e90c
2021-09-10 15:35:19 +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
dundargoc
db1b0ee3b3
refactor: replace TRUE/FALSE with true/false #15425
2021-08-22 07:10:57 -07:00
Dundar Göc
c0767bd4f3
refactor: replace TRUE/FALSE with true/false
2021-08-12 10:37:40 +02:00
Björn Linse
28b5c73bf8
refactor(plines): move horizontal size functions to plines.c
...
fix style.
2021-08-11 17:10:52 +02:00
Björn Linse
ac56a27a10
refactor(plines): remove implicit curwin chartabsize() function
2021-08-10 23:18:12 +02:00