ZyX
f572bd7e4e
eval,functests: Fix tests and complete() and setline() behaviour
2017-12-10 22:24:11 +03:00
ZyX
5c1ddb5078
eval: Fix writefile()
2017-12-10 04:00:54 +03:00
ZyX
21745d72b8
eval: Fix inputlist()
2017-12-10 04:00:54 +03:00
ZyX
274f32d42e
*: Start hiding list implementation
...
Most of files, except for eval.c and eval/* were only processed by perl.
2017-12-10 04:00:52 +03:00
FlorianGit
d763d2fe7a
Viml: Make filter and map handle null list correct
...
filter('v:_null_list, 'v:val') should return v:_null_list and a similar
statement should hold for map.
Changes after review
* Test inserted in legacy test suite has been removed by reverting the commit
adding it.
* Change the fix to tv_copy the argument before returning.
* Readd the two tests on crashes, and modified their expected return value.
* Move the test from 'incorrect behaviour' section to 'correct behaviour section'
* Add analogous tests for v:_null_dict
Always copy list or dictionary to return variable
If the type of input is correct (i.e. either a list or a dictionary), this
should also be returned.
2017-12-03 17:03:31 +01:00
Björn Linse
a97cdff14d
channels: improvements to buffering
2017-11-25 09:37:00 +01:00
Björn Linse
f629f8312d
channels: refactor jobwait
2017-11-25 09:37:00 +01:00
Björn Linse
5517d2323b
channels: reimplement logging (as stub for proper event)
2017-11-25 09:37:00 +01:00
Björn Linse
5af4703177
channels: stderr channel
2017-11-25 09:37:00 +01:00
Björn Linse
90e5cc5484
channels: generalize jobclose()
2017-11-25 09:37:00 +01:00
Björn Linse
3e59c1e20d
channels: move away term code from eval.c
2017-11-25 09:37:00 +01:00
Björn Linse
1ebc96fe10
channels: allow bytes sockets and stdio, and buffered bytes output
2017-11-24 14:54:15 +01:00
Björn Linse
5215e3205a
channels: refactor
2017-11-24 14:50:00 +01:00
Björn Linse
3717e2157f
Revert channel logging, rebased on new code below
2017-11-24 14:04:56 +01:00
Justin M. Keyes
8c959be511
Merge #7593 'PVS static analysis fixes'
2017-11-22 23:12:30 +01:00
Peter Kalauskas
1b94f24d6e
eval.c: remove nonnullret deadcode
...
The following calls can't return null:
* xmalloc
* xcalloc
* get_buffer_info
* get_tabpage_info
* get_vim_var_str
* get_win_info
* tv_get_string
* tv_list_alloc
* tv_list_alloc_ret
* vim_strnsave
2017-11-22 09:21:34 -08:00
KunMing Xie
7d24a95b45
vim-patch:8.0.0287 ( #7590 )
...
Problem: Cannot access the arguments of the current function in debug mode.
(Luc Hermitte)
Solution: use get_funccal(). (Lemonboy, closes vim/vim#1432 , closes vim/vim#1352 )
c7d9eacefa
2017-11-20 02:02:15 +01:00
Justin M. Keyes
f5d4da0144
:checkhealth : validate 'runtimepath' ( #7526 )
2017-11-10 22:37:54 +01:00
Marco Hinz
9837a9c401
compat: "v:count" distinct from "count" ( #7407 )
2017-11-09 02:20:12 +01:00
Justin M. Keyes
860ecd7055
vim-patch:8.0.0096: has('ttyin'), has('ttyout')
...
Nvim note: intentionally did not include `--ttyfail` since its purpose
is not clear. (And it isn't used in any Vim test files/scripts).
---
Problem: When the input or output is not a tty Vim appears to hang.
Solution: Add the --ttyfail argument. Also add the "ttyin" and "ttyout"
features to be able to check in Vim script.
2cab0e1910
2017-11-04 09:36:52 +01:00
Justin M. Keyes
7b0ceb3726
Merge #7173 'api/ui: externalize cmdline'
...
closes #6162
2017-10-29 02:13:12 +02:00
Sam Wilson
b8a67551d8
terminal: Account for number column ( #5310 )
2017-10-27 17:59:54 -04:00
Björn Linse
a68817f565
ext_cmdline: extend "function" to generic "block" mechanism
2017-10-26 20:28:49 +02:00
Dongdong Zhou
5ad591ef2d
ext_cmdline: lint
2017-10-26 09:35:13 +02:00
Dongdong Zhou
461ae69824
ext_cmdline: Add function block support
2017-10-26 09:35:13 +02:00
Dongdong Zhou
550651c130
ext_cmdline: use standard external ui functions
2017-10-26 09:35:12 +02:00
Dongdong Zhou
6e90bc7200
ext_cmdline: Added cmdline prompt
2017-10-26 09:35:12 +02:00
Justin M. Keyes
014bd59957
ex_checkhealth: call health#check() directly
...
This allows us to remove :CheckHealth later (avoids wildmenu noise).
2017-10-17 01:51:21 +02:00
Justin M. Keyes
5baeb4a49c
ex-cmds: :checkhealth
...
Built-in `:checkhealth` checks for valid $VIMRUNTIME by attempting to
autoload `health#check()`.
closes #2977
closes #3159
2017-10-17 01:51:20 +02:00
KunMing Xie
1663599beb
vim-patch:8.0.0164 ( #7368 )
...
Problem: Outdated and misplaced comments.
Solution: Fix the comments.
caa55b65c2
2017-10-08 18:52:57 +02:00
Andrew Ferreira
a4019bc9f6
eval.c: ga_concat_esc() #7357
...
vim-patch:2368917d8f0c0a997eac7a51ddfaa748dc528392
closes #7256
2017-10-07 12:45:23 +02:00
KunMing Xie
ceade2fe53
vim-patch:8.0.0186 ( #7154 )
...
Problem: The error message from assert_notequal() is confusing.
Solution: Only mention the expected value.
5869cf060e
2017-09-10 12:52:43 +02:00
Justin M. Keyes
9882e25dc4
clipboard: avoid error flood during :redir
...
redir_write():
- This is a "batch" operation which was not yet covered by
start_batch_changes()
adjust_clipboard_name():
- msg() and friends during :redir will, of course, cause redir_write()
to try to capture that message, which causes recursion.
- EMSG() here is trouble: if it interrupts :redir it is a mess.
Rather than deal with the mess, show a non-error message.
closes #7182
closes #7184
closes #7183
ref #6048
ref #7032
2017-08-20 19:49:42 +02:00
Justin M. Keyes
bb70eec177
Merge #6364 'command-line color hook'
2017-08-16 00:20:37 +02:00
ckelsel
120d1b80c9
vim-patch:8.0.0147 #7121
...
Problem: searchpair() does not work when 'magic' is off. (Chris Paul)
Solution: Add \m in the pattern. (Christian Brabandt, closes vim/vim#1341 )
6e450a5754
2017-08-06 23:25:49 +02:00
KunMing Xie
644fa6537c
vim-patch:8.0.0143 ( #7120 )
...
Problem: Line number of current buffer in getbufinfo() is wrong.
Solution: For the current buffer use the current line number. (Ken Takata)
f845b87f2b
2017-08-06 23:04:50 +02:00
ZyX
a356d3c895
Merge branch 'master' into colored-cmdline
2017-07-31 13:13:14 +03:00
Justin M. Keyes
b5e713e70d
options: remove ghost of :set termcap
( #7102 )
...
Closes #6763
2017-07-31 02:50:34 +02:00
ZyX
fbe60af538
Merge branch 'master' into colored-cmdline
2017-07-31 02:05:02 +03:00
Matthieu Coudron
dc685387a3
viml: introduce menu_get() function #6322
...
menu_get({path}, {modes}). See :h menu_get.
2017-07-28 01:27:58 +02:00
Justin M. Keyes
bc6a3fe784
log: caller provides the source details
2017-07-23 15:01:31 +02:00
Jurica Bradaric
710546c5e9
vim-patch:8.0.0085
...
Problem: Using freed memory with recursive function call. (Dominique Pelle)
Solution: Make a copy of the function name.
8a01f969c1
2017-07-20 12:57:08 +02:00
ZyX
3a923ad2db
ex_getln: Replace global with entry in save_ccline
2017-07-17 02:33:18 +03:00
ZyX
69719e658c
Merge branch 'master' into colored-cmdline
2017-07-15 18:56:45 +03:00
ckelsel
c805f2cf54
vim-patch:7.4.2250
...
Problem: Some error message cannot be translated.
Solution: Enclose them in _() and N_(). (Dominique Pelle)
5b30291785
2017-07-13 23:15:29 -04:00
Justin M. Keyes
0ea7e45bc1
'cpoptions': remove "<" flag; ignore <special>
...
Closes #6937 "nvim_get_keymap output is unreliable"
2017-07-08 16:34:35 +02:00
ZyX
24f0056ca5
message: Add support for replacing <
to str2special
2017-07-02 19:37: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
6140396d97
*: Adjust usages of modified functions
2017-07-02 18:50:16 +03:00