sohnryang
f50ce7d510
vim-patch:8.0.0184: fix ex-mode exit code #7943
...
Problem: When in Ex mode and an error is caught by try-catch, Vim still
exits with a non-zero exit code.
Solution: Don't set ex_exitval when inside a try-catch. (partly by Christian
Brabandt)
2b7bc567b9
2018-03-24 22:33:41 +01:00
Björn Linse
cee9a8ce8a
message: don't output unprintable chars to screen
...
fixes #7586 #8070
2018-03-04 08:37:57 +01: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
Justin M. Keyes
1cae99b4bf
msg_outtrans_special(): handle NULL
...
This is convenient for terminfo_info_msg().
2017-12-05 01:46:40 +01:00
Justin M. Keyes
5de1eae4f2
msg_outtrans_special(): const
some strings
2017-12-05 01:46:40 +01:00
Justin M. Keyes
586dafee2f
str2specialbuf(): fix comparison
...
regression by 832c158a66
2017-12-05 01:46:39 +01:00
ZyX
c49e22d396
Merge branch 'master' into s-dash-stdin
2017-12-03 16:49:30 +03:00
ZyX
474aa823dc
Merge branch 'master' into colored-cmdline
2017-08-06 15:25:17 +03:00
Justin M. Keyes
3827d5bc71
input: skip dialogs if no UI is active
...
Treat dialogs in the same way as "silent mode" (`nvim -es`).
References #1984
References #3901
2017-08-06 04:22:45 +02:00
ZyX
2952a00d2e
message: Only require second (format) argument to be not NULL
2017-07-26 22:01:48 +03:00
ZyX
69719e658c
Merge branch 'master' into colored-cmdline
2017-07-15 18:56:45 +03:00
ZyX
e07e46f539
message: Fix :echo "\x80"
printing ~@<80>
2017-07-04 02:06:40 +03:00
ZyX
24f0056ca5
message: Add support for replacing <
to str2special
2017-07-02 19:37:21 +03:00
ZyX
6140396d97
*: Adjust usages of modified functions
2017-07-02 18:50:16 +03:00
ZyX
832c158a66
message: Refactor str2specialbuf
...
Does not alter its usages.
2017-07-02 18:47:33 +03:00
ZyX
e9e1668ca6
message: Refactor str2special_save and str2special
...
Does not alter their usages as well.
2017-07-02 18:47:33 +03:00
ZyX
3da49cd68e
ex_getln: Fix “echoerr msg not shown” problem
...
This also attempted to fix problem with cancelling input() on error by avoiding
standard error printing facilities (assumed thrown error message is the
problem), but with no luck so far.
2017-06-28 22:09:10 +03:00
James McCoy
f219657453
vim-patch:7.4.2263
...
Problem: :filter does not work for many commands. Can only get matching
messages.
Solution: Make :filter work for :command, :map, :list, :number and :print.
Make ":filter!" show non-matching lines.
d29459baa6
2017-04-29 23:48:27 -04:00
James McCoy
7bd97127b4
vim-patch:7.4.2244
...
Problem: Adding pattern to ":oldfiles" is not a generic solution.
Solution: Add the ":filter /pat/ cmd" command modifier. Only works for some
commands right now.
7b668e83d0
2017-04-29 23:48:27 -04:00
Justin M. Keyes
8f59d14839
event: Remove "priority" concept.
...
It was replaced by the "child queue" concept (MultiQueue).
2017-04-28 19:20:09 +02:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
ZyX
0718d0e6d4
message: Some more has_mbyte/enc_utf8 removal
2017-04-16 20:58:19 +03:00
ZyX
083792e137
message: Remove some enc_utf8/… checks
2017-04-16 20:56:30 +03:00
Björn Linse
c1cf033981
lint: fix clint errors around mb_tolower calls
2017-04-10 12:02:26 +02:00
Björn Linse
db9ef6263e
mbyte: replace vim_tolower with mb_tolower handling locale correctly
2017-04-10 12:01:40 +02:00
ZyX
8eb598c08e
fixup!
2017-04-03 00:44:49 +03:00
ZyX
8dd9c6edd8
message: Do not use IObuff in emsgf
2017-04-03 00:40:48 +03:00
ZyX
8b0fa64ed3
message: Remove incorrect assertion
...
It was there only to prove that *now* `len` argument is not used to forbid
putting message into history (i.e. that Neovim behaviour did not change). After
this commit it should be possible to use msg_puts_attr_len with len>=0 to put
message into history should new code need this.
2017-03-29 10:08:06 +03:00
ZyX
40feac6efc
message: Revise maxlen argument in msg_puts_attr_len
...
`attr` argument is enough to forbid putting message in history. Also forbid
strings with NUL before `len` just in case (it appears that this does not ever
happen).
2017-03-29 10:08:06 +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
lonerover
f9a31e9850
vim-patch:7.4.2349 ( #6368 )
...
Problem: Valgrind reports using uninitialzed memory. (Dominique Pelle)
Solution: Check the length before checking for a NUL.
2321ca2a78
2017-03-26 19:04:57 +02:00
Matthew Malcomson
098e91400e
refactor: Remove allow_keys global ( #6346 )
...
* The allow_keys global is unused in nvim, remove it
* clint
2017-03-25 15:43:19 +01:00
ZyX
ca116df260
main: Translate full -s error message, not part of it
2017-03-19 19:28:16 +03:00
James McCoy
532197b4f9
lint
2017-03-06 15:36:14 -05:00
James McCoy
52e56954c6
vim-patch:7.4.2097
...
Problem: Warning from 64 bit compiler.
Solution: use size_t instead of int. (Mike Williams)
d4f31dc454
2017-03-06 15:36:14 -05:00
James McCoy
4e3a2784ec
vim-patch:7.4.2068
...
Problem: Not all arguments of trunc_string() are tested. Memory access
error when running the message tests.
Solution: Add another test case. (Yegappan Lakshmanan) Make it easy to run
unittests with valgrind. Fix the access error.
b9644433d2
2017-03-06 15:36:09 -05:00
James McCoy
7217360e34
vim-patch:7.4.2051
...
Problem: No proper testing of trunc_string().
Solution: Add a unittest for message.c.
502ae4ba63
2017-03-06 15:09:40 -05:00
Sander Bosma
ddd8f7d333
message.c: fix dead assignment by removing dead code
...
`enc_dbcs` and `enc_utf8` are deprecated (globals.h), so the second branch is
always taken.
2017-02-20 20:06:38 +01:00
Justin M. Keyes
c1bc784ad8
Merge #6110 'refactor: Move vim_*printf to strings.c'.
2017-02-17 16:25:19 +01:00
Justin M. Keyes
706b01ba79
Merge #6114 'Partial string handling refactoring'.
2017-02-17 02:08:21 +01: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
ZyX
a429235b6d
message,strings: Move vim_*printf functions to strings.c
...
Allows eval/typval.h to #include message.h.
2017-02-14 00:53:03 +03:00
Nikolai Aleksandrovich Pavlov
abdbfd26bc
eval: Add id() function and make printf("%p") return something useful ( #6095 )
2017-02-11 19:47:02 +01:00
James McCoy
7e7f01a3be
execute: Correctly capture output with highlight attributes
...
Closes #5422
2017-02-01 18:28:32 -05:00
Justin M. Keyes
6c467f3f7e
coverity/133853: Out-of-bounds access
2017-01-23 15:49:37 +01:00
lonerover
1a06a39488
vim-patch:7.4.2049
...
Problem: There is no way to get a list of the error lists.
Solution: Add ":chistory" and ":lhistory".
f6acffbe83
2017-01-19 10:11:53 +08:00
James McCoy
f3c93fbefe
lint
2017-01-10 07:14:24 -05:00
James McCoy
6520517e22
vim-patch:7.4.2008
...
Problem: evalcmd() has a confusing name.
Solution: Rename to execute(). Make silent optional. Support a list of
commands.
79815f1ec7
2017-01-10 07:14:12 -05:00
lonerover
aa35cd9af0
vim-patch:7.4.1876 ( #5848 )
...
Problem: Typing "k" at the hit-enter prompt has no effect.
Solution: Don't assume recursive use of the prompt if a character was typed.
(Hirohito Higashi)
a0055ad3a7
2016-12-31 17:27:11 +01:00