ZyX
8ac7c23b7d
eval: Fix linter errors
2017-12-31 01:00:13 +03:00
ZyX
c55cf5f4c1
eval,lua/converter: Fix problems spotted in review
2017-12-31 01:00:13 +03:00
ZyX
b6ee90a243
eval: Refactor some potentially dangerous list appends
2017-12-25 01:44:44 +03:00
ZyX
6ab5eb347b
eval: Remove magic numbers from find_some_match() type argument
2017-12-25 01:08:58 +03:00
ZyX
7997147245
eval: Replace some tv_list_item_remove() calls
...
There is nothing wrong with them, just it is generally better to remove
a range then to remove items individually.
2017-12-24 17:52:24 +03:00
ZyX
67fa9e5237
eval: Rename tv_list_remove_items() to tv_list_drop_items()
...
tv_list_remove_items() may cause confusion with tv_list_item_remove()
2017-12-24 16:38:30 +03:00
ZyX
ac55558c97
eval/typval: Make tv_list_item_remove return pointer to the next item
2017-12-24 14:09:36 +03:00
ZyX
0c533a488f
*: Remove most calls to tv_list_item_alloc
...
Still left calls in eval/typval.c and test/unit/eval/helpers.lua. Latter is the
only reason why function did not receive `static` modifier.
2017-12-24 14:09:35 +03:00
ZyX
c9ab209f9e
Merge branch 'master' into hide-container-impl
2017-12-23 15:27:42 +03:00
James McCoy
20708a07bf
vim-patch:8.0.0590: cannot add a context to locations
...
Problem: Cannot add a context to locations.
Solution: Add the "context" entry in location entries. (Yegappan Lakshmanan,
closes vim/vim#1012 )
8f77c5a4ec
2017-12-19 14:07:24 -05:00
James McCoy
fb8592b7ba
vim-patch:8.0.0517: there is no way to remove quickfix lists
...
Problem: There is no way to remove quickfix lists (for testing).
Solution: Add the 'f' action to setqflist(). Add tests. (Yegappan
Lakshmanan)
b6fa30ccc3
2017-12-18 14:35:55 -05:00
ZyX
edccf18df5
eval: Fix some issues found in review
2017-12-17 15:23:27 +03:00
ZyX
7f3b9a4acc
Merge branch 'master' into hide-container-impl
2017-12-16 14:27:41 +03:00
ZyX
76ffe0c5aa
eval: Fix linter error
2017-12-16 14:21:56 +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
fb07391ce4
window: Fix matchaddpos() and enhance error reporting
2017-12-15 11:38:34 +03:00
ZyX
932ea7a0d1
clint,eval: Make linter check for direct usage of list attributes
2017-12-12 08:43:31 +03:00
ZyX
45998deb5d
*: Fix linter errors
2017-12-12 00:52:14 +03:00
ZyX
1a961b5750
eval: Fix add()
2017-12-11 10:34:58 +03:00
ZyX
f4132fb38b
*: Fix linter errors
2017-12-11 10:19:20 +03:00
ZyX
d46e37cb4c
*: Finish hiding list implementation
2017-12-11 10:12:59 +03:00
ZyX
ceb45a0885
*: Fix test failures
2017-12-11 01:43:36 +03:00
ZyX
fe55f37083
eval: Still check for NULL when doing :unlet
2017-12-10 23:18:24 +03:00
ZyX
d11884db49
eval: Fix uniq() crash in legacy test 055
2017-12-10 23:02:19 +03:00
ZyX
5008205a3e
eval: Fix setmatches(), setqflist() and setloclist()
2017-12-10 22:28:18 +03:00
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