dundargoc
8a4285d563
refactor: replace char_u with char 24 ( #21823 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-18 21:17:11 +08:00
dundargoc
e89c39d6f0
refactor: replace char_u with char 21 ( #21779 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-14 15:58:28 +08:00
dundargoc
f2141de9e4
refactor: replace char_u with char 20 ( #21714 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-13 07:35:39 +08:00
dundargoc
50f03773f4
refactor: replace char_u with char 18 ( #21237 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 22:37:34 +08:00
dundargoc
1492094003
refactor: replace char_u with char 17 - remove STRLCPY ( #21235 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 21:13:06 +08:00
zeertzjq
a174f4e53f
vim-patch:9.0.1158: code is indented more than necessary ( #21697 )
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes vim/vim#11787 )
7f8b2559a3
Omit reset_last_used_map(): only used in Vim9 script.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2023-01-09 07:16:36 +08:00
dundargoc
3b96ccf7d3
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-28 14:53:35 +01:00
Dundar Göc
bd22585061
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-26 15:52:21 +01:00
Dundar Göc
40f3f75867
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-19 16:27:10 +01:00
dundargoc
66360675cf
build: allow IWYU to fix includes for all .c files
...
Allow Include What You Use to remove unnecessary includes and only
include what is necessary. This helps with reducing compilation times
and makes it easier to visualise which dependencies are actually
required.
Work on https://github.com/neovim/neovim/issues/549 , but doesn't close
it since this only works fully for .c files and not headers.
2022-11-15 10:30:03 +01:00
dundargoc
6ff245732a
refactor(uncrustify): improved formatting rules
2022-10-21 16:23:32 +02:00
Lewis Russell
0ef6aaa3a7
refactor: clint ( #20600 )
2022-10-12 14:53:40 +01:00
dundargoc
6d557e324f
vim-patch:8.1.0941: macros for MS-Windows are inconsistent ( #20215 )
...
Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and
others.
Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the
GUI build. (Hirohito Higashi, closes vim/vim#3932 )
4f97475d32
2022-09-18 09:17:15 +08:00
Dundar Göc
3ff46544c9
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-11 13:28:59 +02:00
Dundar Göc
684bc749ef
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-10 11:17:40 +02:00
Dundar Göc
73207cae61
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-06 16:44:37 +02:00
dundargoc
12afc344de
refactor: migrate comment style 2 #20080
2022-09-06 07:23:00 -07:00
Lewis Russell
1ffd527c83
refactor: migrate comment style ( #20012 )
...
Done automatically using the following perl command:
perl -pi -0777pe 's#\n\K */\*\n(.+?)\s*\*/\n#join("\n", map { $_ =~ s:^\s*\K \*://:; $_ } split("\n", $1)) . "\n"#sge' src/nvim/**/*.c
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-02 17:39:49 +01:00
Dundar Göc
49e893f296
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-01 10:47:42 +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
691f4715c0
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-27 17:59:43 +02:00
Lewis Russell
2498e9feb0
refactor: change FALSE/TRUE to false/true
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-26 09:36:55 +01:00
zeertzjq
207fe4810e
vim-patch:9.0.0270: some values of 'path' and 'tags' invalid in the tiny version
...
Problem: Some values of 'path' and 'tags' do not work in the tiny version.
Solution: Graduate the +path_extra feature.
2bd9dbc19f
2022-08-26 07:00:52 +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
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
6f14c5d2dd
refactor: remove some unused includes ( #19747 )
...
- Remove autocmd.h from fileio.h
- Remove normal.h from main.h
- Move bufinfo_T from undo_defs.h to undo.c
2022-08-13 08:59:11 +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
jdrouhard
d4b9f8186d
vim-patch:9.0.0126 ( #19612 )
...
vim-patch:9.0.0126: expanding file names fails in dir with more than 255 entries
Problem: Expanding file names fails in directory with more than 255
entries.
Solution: Use an int instead of char_u to count. (John Drouhard,
closes vim/vim#10818 )
95fca12b0e
2022-08-02 05:39:23 +08:00
Dundar Goc
824a729628
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-31 00:52:59 +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
9fec6dc9a2
refactor(uncrustify): set maximum number of consecutive newlines to 2 ( #18695 )
2022-05-25 12:31:14 -06: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
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
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
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
0648100fed
refactor: convert macros to all-caps ( #17895 )
...
Closes https://github.com/neovim/neovim/issues/6297
2022-04-24 20:18:43 -06:00
dundargoc
534f5a419d
refactor: convert function comments to doxygen format ( #17710 )
2022-03-24 12:17:21 +01:00
zeertzjq
059d36e326
feat(events): add DirChangedPre
...
In Nvim, like DirChanged, this also triggers when switching windows.
This marks Vim patch 8.2.4335 as ported.
vim-patch:8.2.4335: no autocommand event triggered before changing directory
Problem: No autocommand event triggered before changing directory. (Ronnie
Magatti)
Solution: Add DirChangedPre. (closes vim/vim#9721 )
28e8f73ae2
2022-02-11 12:55:58 +08:00
zeertzjq
7d72076a6f
vim-patch:8.2.3219: :find searches non-existing directories
...
Problem: :find searches non-existing directories.
Solution: Check the path is not "..". Update help. (Christian Brabandt,
closes vim/vim#8612 , closes vim/vim#8533 )
7a4ca32175
Change STRNCAT to STRLCAT as clint doesn't like the former.
Include a typo fix from 2f0936cb9a (diff-7e9292cae1f2ba70dd5b17d2d162693a91044ada6ac99e9c3e8917f32878c097)
2022-02-01 17:08:40 +08:00
zeertzjq
dda1c8edda
vim-patch:8.2.3613: :find test fails
...
Problem: :find test fails.
Solution: Put length check inside if block.
e015d99abb
2022-01-18 10:05:31 +08:00
zeertzjq
ec39e1e421
vim-patch:8.2.3611: crash when using CTRL-W f without finding a file name
...
Problem: Crash when using CTRL-W f without finding a file name.
Solution: Bail out when the file name length is zero.
615ddd5342
2022-01-18 10:05: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
09c412837f
refactor: remove some chdir-related unnecessary calls and checks
...
xmalloc() always retuns a valid pointer.
Calling os_chdir() with the same directory as the current one doesn't do
anything other than wasting time.
2021-12-20 18:58:13 +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
Jan Edmund Lazo
828bf128a6
Merge pull request #15840 from vimpostor/vim-8.2.3430
...
vim-patch:8.2.{3430,3434,3462,3463,3555,3609,3610}: ModeChanged autocmd
2021-11-30 22:13:50 -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
Magnus Groß
1fb101afe4
vim-patch:8.2.3609: internal error when ModeChanged is triggered recursively
...
Problem: Internal error when ModeChanged is triggered when v:event is
already in use.
Solution: Save and restore v:event if needed.
3075a45592
In the vim codebase there is no occurrence of get_vim_var_dict(VV_EVENT)
after the above patch, so in order to hold the same invariant in the
neovim codebase we needed to replace more occurrences than the related
vim patch.
2021-11-18 14:23:33 +01:00
Björn Linse
54ff21a153
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 16:33:12 +01:00