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
Michael Ennen
d2be11fbf2
vim-patch:7.4.1735
...
Problem: It is not possible to only see part of the message history. It is
not possible to clear messages.
Solution: Add a count to ":messages" and a clear argument. (Yasuhiro
Matsumoto)
451f849fd6
2016-11-29 16:32:43 -07:00
Justin M. Keyes
7be113d795
shell_write_cb: Schedule error message. ( #5670 )
...
Closes #5558
2016-11-26 13:08:42 +01: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
Anmol Sethi
a8e973dea6
ex_messages: remove 'Messages maintainer' ( #5160 )
2016-08-04 21:01:32 -04:00
Justin M. Keyes
aa2c439940
eval.c: rename capture() to execute() ( #5132 )
2016-07-31 13:23:29 -04:00
Justin M. Keyes
8a4e5b4bc2
Merge #4697 'capture() function'.
2016-06-20 00:55:41 -04:00
Charles Joachim
c2a1821611
ops.c: enable -Wconversion warning
2016-05-30 12:05:08 -04:00
Shougo Matsushita
41c0dfd545
Port capture() function
...
https://groups.google.com/forum/#!msg/vim_dev/H3Z3ChSUh_4/beZs6KzYdBsJ
2016-05-27 10:33:44 +09:00
Björn Linse
5cc87d4dab
cmdline: Redraw the cmdline after processing events
...
vim-patch:7.4.1603
TODO(bfredl): if we allow events in HITRETURN and ASKMORE states,
we need to add the necessary redraws as well.
2016-05-24 22:11:37 +02:00
Justin M. Keyes
4e101310d5
msg_puts_printf: remove char_u
2016-05-17 00:28:40 -04:00
Justin M. Keyes
c7f02f4f8d
Merge pull request #4639 from brcolow/vim-7.4.1347
...
vim-patch: 7.4.1347
2016-05-10 01:22:25 -04: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