ZyX
1f05ec95c0
ex_getln: Silent V519: value is assigned twice successively
...
This is usual “passing data via global” false positive.
2017-07-04 16:24:48 +03:00
ZyX
c930f32ab9
socket: Silence V641: buf size is not multiple of what it is cast to
2017-07-04 16:22:18 +03:00
Justin M. Keyes
5214798cfc
Merge #6955 'Fix invalid :echo output'
2017-07-04 15:18:18 +02:00
ZyX
2e89aaf3bd
charset: Fix V728: excessive check
2017-07-04 16:08:52 +03:00
ZyX
91b9ad7d82
shada: Make sure that code does not attempt to read too long items
...
Fixes #6957
2017-07-04 15:41:59 +03:00
ZyX
2208b64891
functests: Ensure different SIDs on successive source() calls
2017-07-04 15:15:23 +03:00
ZyX
480598dcda
functests: Add some more :echo tests which also check for regression
...
Fixes #6954
2017-07-04 02:38:40 +03:00
ZyX
d113d3d737
functests: Make ex_cmds/echo actually use :echo
2017-07-04 02:22:26 +03:00
ZyX
e07e46f539
message: Fix :echo "\x80"
printing ~@<80>
2017-07-04 02:06:40 +03:00
ZyX
b199194a2c
functests: Copy eval/string_spec.lua to ex_cmds/echo_spec.lua
2017-07-04 02:06:04 +03:00
Justin M. Keyes
008b604bac
Merge #6947 from ZyX-I/consistent-get_keymap
2017-07-03 23:33:08 +02:00
Matthieu Coudron
e333957a1a
dict_get_value(): name the missing key ( #6952 )
2017-07-03 23:03:30 +02:00
James McCoy
82907ab5fe
Merge pull request #6946 from jamessan/fix-expand_env_esc-test
...
test: expand_env_esc: Pass correct buffer size for outlen and assertion
2017-07-02 18:52:26 +00:00
ZyX
35898cff5d
unittests: Fix allocation ordering for tv_dict_add_str()
2017-07-02 20:24:39 +03:00
ZyX
d5916a823a
functests: Test how spaces appear in get_keymap output
2017-07-02 20:08:00 +03:00
James McCoy
4d01725699
test: expand_env_esc: Pass correct buffer size for outlen and assertion
...
Running this test with a mocked passwd file whose $HOME was set to
/home/jamessan/src/debian.org/pkg-vim/deb-packages/neovim/neovim-0.2.0/debian/fakehome
caused the test to fail, since the expanded result was >= 99 bytes. The
test should be reflecting the actual size of the buffer, instead of some
arbitrary other number, anwyay.
2017-07-02 12:52:43 -04:00
ZyX
b97df0bdad
getchar: Fix linter error
2017-07-02 19:52:04 +03:00
ZyX
5fe5d712aa
functests: Use more extensive testing
...
Fixes #6937
2017-07-02 19:50:03 +03:00
ZyX
24f0056ca5
message: Add support for replacing <
to str2special
2017-07-02 19:37:21 +03:00
ZyX
a1fee487ba
functests: Add tests for new behaviour
...
Apparently it is not working yet.
2017-07-02 19:28:44 +03:00
ZyX
4b8bdd953e
functests: Remove local_copy function
2017-07-02 19:21:21 +03:00
ZyX
936c070059
eval: Make nvim_get_keymap output more robust
2017-07-02 19:15:14 +03:00
ZyX
85a6329a2b
eval: Use tv_dict_add_allocated_str() for mapblock_fill_dict
2017-07-02 19:02:15 +03:00
ZyX
df040e55fb
eval/typval: Add tv_dict_add_allocated_str() function
2017-07-02 19:01:09 +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
ac086d8ce2
mbyte: Refactor mb_unescape
...
Does not alter its usages.
2017-07-02 18:47:32 +03:00
Justin M. Keyes
ca4633bfe4
ci/quickbuild: XXX: disable server_requests test ( #6851 )
...
Temporarily disable this test which hangs quickbuild.
From #6905 : The hang occurs when calling nvim_set_current_line.
References #6594 5a151555c8
2017-07-02 00:30:00 +02:00
KunMing Xie
57d691e81a
test: handle single-char hostname ( #6939 )
2017-07-01 18:48:17 +02:00
ZyX
7ab152aaa5
ex_getln: Save and restore try state
...
Problem: when processing cycle such as
:for pat in [' \ze*', ' \zs*']
: try
: let l = matchlist('x x', pat)
: $put ='E888 NOT detected for ' . pat
: catch
: $put ='E888 detected for ' . pat
: endtry
:endfor
`:let l = …` throwing an error causes this error to be caught after
color_cmdline attempts to get callback for highlighting next line (the one with
`$put = 'E888 NOT…`). Saving/restoring state prevents this from happening.
2017-07-01 15:34:25 +03:00
James McCoy
fcbc7a8db4
Merge pull request #6936 from jamessan/unicode-10
...
Update to Unicode 10
2017-06-30 17:52:16 +00:00
James McCoy
03fc0e3f41
scripts: Tell curl to follow redirects
2017-06-29 20:25:51 -04:00
James McCoy
ddea5038e4
Update unicode files
2017-06-29 17:46:29 -04:00
James McCoy
25eced62b6
Update emoji-data URL for Unicode 10
...
vim-patch:8.0.0652
2017-06-29 17:46:27 -04:00
Justin M. Keyes
42d892913d
cmake: Remove custom "Dev" build-type. ( #6932 )
...
The main purpose of this build-type was to avoid unwanted ~/.nvimlog
files (which could get really big, and also affects performance) for
non-devs. But that is no longer necessary since the log system now
avoids non-critical logging by default (#6827 ).
This essentially reverts 87e5a41316
2017-06-29 09:29:40 +02:00
ZyX
ea75966e42
ex_getln: Do not make <C-c> interrupt input() after interrupting hl cb
2017-06-28 22:54:13 +03:00
ZyX
564d5f921c
ex_getln: Fix indent
2017-06-28 22:21:37 +03:00
ZyX
99079a164d
ex_getln: Make sure standard error reporting facility is not used
2017-06-28 22:20:47 +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
ZyX
9ccb3abbb5
functests: Uncomment {REDRAW}
part of “works” test
2017-06-28 14:39:52 +03:00
ZyX
5e4976559a
functests: Partially uncomment <C-c> test
2017-06-28 14:34:12 +03:00
ZyX
0ed95423de
ex_getln: Call highlight callback inside :try
2017-06-28 14:26:23 +03:00
ZyX
493d250446
functests: Make “stops executing callback” test work
...
Needed to be adjusted to use input() (previously relied on side-effects of
executing `:cmd`) and dismiss something (hidden “Press ENTER” message?).
2017-06-28 13:58:51 +03:00
ZyX
36a84d8f4a
functests: Fix typo
2017-06-28 13:54:04 +03:00
Justin M. Keyes
f0dafa89c2
provider/clipboard.vim: Handle missing g:clipboard keys
2017-06-28 09:42:03 +02:00
Justin M. Keyes
6016ac270f
provider/clipboard.vim: allow configuration #6030
...
Closes #6029
2017-06-27 12:22:06 +02:00
James McCoy
91749c06dc
Merge pull request #6927 from jamessan/vim-7.4.2259
...
vim-patch:7.4.2259,7.4.2268,7.4.2318,7.4.2320
2017-06-27 03:19:01 +00:00
James McCoy
6a842132bc
ex_getln: Lint command_line_handle_key readability/fn_size
...
Create new functions to handle moving to the next incsearch match or
matching history index.
2017-06-26 22:08:13 -04:00
James McCoy
54d5e90a2b
vim-patch:7.4.2320
...
Problem: Redraw problem when using 'incsearch'.
Solution: Save the current view when deleting characters. (Christian
Brabandt) Fix that the '" mark is set in the wrong position. Don't
change the search start when using BS.
dda933d06c
2017-06-26 22:08:13 -04:00