Sean Dewar
a25c35d6e4
vim-patch:8.2.3470: crash with error in :catch and also in :finally
...
Problem: Crash with error in :catch and also in :finally.
Solution: Only discard an exception if there is one. (closes vim/vim#8954 )
a684a68409
2022-04-13 21:15:24 +08:00
Dundar Göc
2aa473593f
refactor: convert function comments to doxygen format
2022-03-15 19:44:44 +01:00
Dundar Göc
ff032f2710
refactor: remove redundant casts
2022-03-06 23:02:10 +01:00
Dundar Göc
4d2744ffe3
refactor: fix clang-tidy bugprone-signed-char-misuse warnings
...
Prefer to declare variables with correct type instead of explicit casts
wherever possible.
2022-03-04 19:52:41 +01: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
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
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
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
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
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
30fefee684
refactor: format with uncrustify #15726
2021-09-20 06:53:38 -07:00
Sean Dewar
9f3d7dcda2
vim-patch:8.1.1195: Vim script debugger functionality needs cleanup
...
Problem: Vim script debugger functionality needs cleanup.
Solution: Move debugger code to a separate file. Add more tests. (Yegappan
Lakshmanan, closes vim/vim#4285 )
eead75c5e8
Good to have for eval_expr_restore in v8.2.3417.
Doesn't actually add any tests.
2021-09-13 17:19:15 +01:00
Dundar Göc
dfd9d861dc
refactor: replace TRUE/FALSE with true/false
...
Focus is on global variables.
2021-07-26 17:12:35 +02:00
dundargoc
4547137aaf
chore: use codespell to spell check #15016
2021-07-07 15:28:44 -07:00
Jan Edmund Lazo
b34dc4c458
ex_cmds: port :eval
...
Cherry-picked from patch v8.1.1807.
Required for patch v8.2.2761.
2021-04-15 18:30:03 -04:00
Jan Edmund Lazo
e465157ecd
vim-patch:8.2.2163: crash when discarded exception is the current exception
...
Problem: Crash when discarded exception is the current exception.
Solution: Compare the execption with current_exception. (closes vim/vim#7499 )
13656f02e4
2020-12-19 21:38:17 -05:00
Jan Edmund Lazo
1d9b146ce3
vim-patch:8.2.0607: gcc warns for using uninitialized variable
...
Problem: Gcc warns for using uninitialized variable. (John Marriott)
Solution: Set name_end also for environment variables.
2bb76accc6
2020-08-19 21:38:42 -04:00
Jan Edmund Lazo
0680b5218e
vim-patch:8.1.2341: not so easy to interrupt a script programatically
...
Problem: Not so easy to interrupt a script programatically.
Solution: Add the interrupt() function. (Yasuhiro Matsumoto, closes vim/vim#2834 )
67a2deb9cb
2020-08-14 18:20:28 -04:00
Justin M. Keyes
6b050a145d
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-26 20:01:58 -07:00
Jan Edmund Lazo
a122f6c6d4
vim-patch:8.2.0560: compiler warning in tiny build
...
Problem: Compiler warning in tiny build.
Solution: Move declaration inside #ifdef. (Dominique Pelle, closes vim/vim#5915 )
2196bce56f
2020-04-12 16:04:51 -04:00
Jakub Łuczyński
5e815edece
rename: user_funcs -> userfunc
...
Lets stick with vim for now
2020-02-13 14:11:55 +01:00
Jakub Łuczyński
d50c1123d5
fix: includes
2020-02-13 14:11:53 +01:00
Jan Edmund Lazo
9e6ebed6f4
vim-patch:8.2.0013: not using a typedef for condstack
...
Problem: Not using a typedef for condstack.
Solution: Add a typedef.
ddef129160
2019-12-16 20:36:11 -05:00
Jan Edmund Lazo
6508215b5c
Remove excess <stdint.h>
2019-09-11 22:27:45 -04:00
Gabriel Cruz
c76494d8b7
vim-patch:8.0.0705: check did_throw before discarding exception #9808
...
Problem: Crash when there is an error in a timer callback. (Aron Griffis,
Ozaki Kiichi)
Solution: Check did_throw before discarding an exception. NULLify
current_exception when no longer valid.
cae24be4a8
2019-03-30 22:28:19 +01:00
Justin M. Keyes
34b6a3d944
doc
2018-05-09 23:18:38 +02:00
ZyX
201a4ef11c
*: Replace did_throw checks with current_exception checks
...
Removes obsolete did_throw after that.
2018-03-25 15:13:05 +03:00
ZyX
79b4b6fc86
*: Make sure that !did_throw implies !current_exception
...
Fixes #7876
2018-03-25 14:50:48 +03:00
Michael Schupikov
d5bce42b52
vim-patch:8.0.0074
...
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
95f096030e
Signed-off-by: Michael Schupikov <michael@schupikov.de >
2017-12-15 15:50:58 -05:00
ZyX
fbe60af538
Merge branch 'master' into colored-cmdline
2017-07-31 02:05:02 +03:00
Jurica Bradaric
09470eb673
vim-patch:8.0.0075
...
Problem: Using number for exception type lacks type checking.
Solution: Use an enum.
8a5883b748
2017-07-25 19:06:23 +02:00
ZyX
25c6ac1af6
*: Fix clint errors
2017-07-18 01:21:23 +03:00
ZyX
2a6423eba7
api helpers: Save/restore more values in try_enter/try_leave
...
This fixes memory leak reported by ASAN. This also somehow fixes test40, though
I have no idea why except that that test yields memory leak report.
2017-07-16 22:03:31 +03:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
ZyX
50ebd1dff5
eval: Move free_tv to eval/typval.h, remove most of its usages
2017-03-29 10:08:05 +03:00
ZyX
28dafe3ff0
eval,*: Move get_tv_string to typval.c
...
Function was renamed and changed to return `const char *`.
2017-03-29 10:08:05 +03:00
ZyX
fb146e80aa
eval: Split eval.c into smaller files
2017-03-29 10:05:06 +03:00
ZyX
095e6cc2e0
*: Fix linter errors
2017-02-15 03:15:47 +03:00
ZyX
efa2682e3b
*: Partial string handling refactoring
...
Main points:
- Replace `char_u` with `char` in some cases.
- Remove `str[len] = NUL` hack in some cases when `str` may be considered
`const`.
2017-02-15 02:48:33 +03:00
Justin M. Keyes
df072c3b2b
refactor: eliminate misc2.c
...
move `call_shell` to misc1.c
Move some fns to state.c
Move some fns to option.c
Move some fns to memline.c
Move `vim_chdir*` fns to file_search.c
Move some fns to new module, bytes.c
Move some fns to fileio.c
2016-09-13 16:20:09 +02:00
ZyX
cf4e1fb0f4
*: Fix new linter errors
...
Originally there were 128 new errors, so I thought this is a good idea to fix
all of them. Of course, this commit also fixes many suppressed errors.
2016-05-01 20:35:51 +03:00
ZyX
494b1c9bee
*: Make set_vim_var_\* functions have proper argument types
2016-04-18 02:48:20 +03:00
KillTheMule
1b1960ab90
Satisfy the linter
2016-04-15 20:17:07 +02:00
KillTheMule
824a6877ea
vim-patch:7.4.1282
...
Problem: Crash when evaluating the pattern of ":catch" causes an error.
(Dominique Pelle)
Solution: Block error messages at this point.
768ce2435a
Applied manually. Could not reproduce the crash both using vim and nvim,
therefore could not device a test.
Should be merged anyways, since it's in vim?
2016-04-15 20:17:07 +02:00
oni-link
2ea02ff635
ex_eval: Fix memory leak
...
Parameter should_free, indicating that the caller has to free the
returned pointer from get_exception_string(), is not set to true if
type == ET_ERROR.
2016-03-05 20:46:59 +01:00
Michael Reed
53ee6425c8
src/*: Remove VIM - Vi improved ...
header
...
Regarding the individual items in the header:
`Vim - Vi improved by Bram Moolenar`
Bram Moolenar is already mentioned throughout the documentation, as
well as the intro screen.
`:help uganda`
It's already shown to all users who don't use `shortmess+=I` upon
starting nvim, and is already placed prominently in help.txt, i.e.,
`:help` run with no arguments.
`:help credits`
Already mentioned near the top of help.txt.
`README.md`
Already mentioned in develop.txt.
2015-11-27 16:25:10 -05:00
Michael Reed
af5483089e
src: README.txt -> README.md
...
The former no longer exists in this repo; see the top of
src/nvim/README.md.
2015-11-23 21:38:08 -05:00
Michael Reed
af3381b319
Remove char_u: Review
...
Helped-by: Scott Prager <splinterofchaos@gmail.com >
2015-05-13 15:29:50 -04:00