ZyX
03a129aacf
Merge branch 'master' into expression-parser
2017-11-19 22:05:22 +03:00
ZyX
6ea3a08fdb
syntax: Fix duplicate group definitions
2017-11-19 22:01:19 +03:00
ZyX
731dc82f8c
ex_getln: Fix memory leak in color_expr_cmdline
2017-11-19 21:21:45 +03:00
ZyX
f20f97c936
*: Fix linter errors
2017-11-19 21:13:27 +03:00
ZyX
764cf3251d
charset: Add missing include needed for vim_str2nr
2017-11-19 19:27:21 +03:00
ZyX
c287893225
viml/parser/expressions,unittests: Do better testing, fix found issues
2017-11-19 19:22:54 +03:00
Justin M. Keyes
de8b1fd1de
Merge #7587 'vim-patch:8.0.0283'
2017-11-19 13:47:37 +01:00
ckelsel
540ed64635
vim-patch:8.0.0283
...
Problem: The return value of mode() does not indicate that completion is
active in Replace and Insert mode. (Zhen-Huan (Kenny) Hu)
Solution: Add "c" or "x" for two kinds of completion. (Yegappan Lakshmanan,
closes vim/vim#1397 ) Test some more modes.
https://github.com/vim/vim/commit/e90858d0229444b3cd16b1cd3a8d61a24c435705
2017-11-19 19:53:47 +08:00
Justin M. Keyes
f19e5d6530
tui: setrgbf/setrgbb: emit semicolons for VTE
...
Severe memory leak observed on gnome-terminal 3.26.2 VTE 0.50.2 when
colon-delimited RGB sequences are used.
closes #7573
2017-11-18 12:26:09 +01:00
Eric Roberts
a6de144c3e
'viewoptions': add "curdir" flag #7447
...
The flag enables the current local directory set by ":lcd" to be saved
to views which is the current default behaviour. The option can be
removed to disable this behaviour.
closes #7435
vim-patch:8.0.1289
2017-11-18 12:02:15 +01:00
Justin M. Keyes
bf3f0efb3a
os_nodetype: rework
...
Make the Windows impl closer to Vim os_win32.c, and the Unix impl closer
to Vim os_unix.c.
Outcomes:
- Do not send negative fd to close(). ref #4806 #4772 #6860
- Fallback return-value is now correct in (hopefully) all cases.
- unix: check S_ISXXX instead of relying on os_open (which can fail for
irrelevant reasons). buf_write() expects NODE_WRITABLE for character
devices such as /dev/stderr. 96f834a842
2017-11-17 23:26:51 +01:00
Justin M. Keyes
d135ba99b2
os_open, os_stat: UV_EINVAL on NULL filename
...
EINVAL (instead of EFAULT) because that's what glibc does:
https://github.com/bminor/glibc/blob/master/io/open.c#L35
os_nodetype: check for UV_EINVAL explicitly.
ref #4370
ref https://github.com/neovim/neovim/issues/4370#issuecomment-344366571
ref ac055d677a
ref #4772
2017-11-17 22:30:38 +01:00
Justin M. Keyes
07931ed1c8
tui: 'guicursor': use DECSCUSR for xterm-likes ( #7576 )
...
Anything claiming to be an xterm gets DECSCUSR. This is the only
reasonable choice unless/until we get more reliable detection (#7490 ).
ref #6997
closes #7550
2017-11-17 22:24:01 +01:00
Sewoong Park
ee031eb525
lint #7562
2017-11-17 00:57:36 +01:00
Justin M. Keyes
67e4529292
defaults: scrollback=10000 ( #7556 )
2017-11-14 20:55:25 +01:00
Justin M. Keyes
8fff2ef74a
vim-patch:8.0.0227 ( #7548 )
...
Problem: Crash when 'fileformat' is forced to "dos" and the first line in
the file is empty and does not have a CR character.
Solution: Don't check for CR before the start of the buffer.
https://github.com/vim/vim/commit/2aa5f696b91a51f29873e340de4bdc182e1e8dd4
2017-11-13 08:30:25 +01:00
James McCoy
8d8212d384
Merge pull request #7545 from jamessan/test-fixes
...
Fix test failures found in Debian builds, closes #7522
2017-11-12 21:09:44 -05:00
Justin M. Keyes
e6beb60da5
:terminal : fix crash on resize ( #7547 )
...
closes #7538
Fix wrong window references from #7440
Remove some eager resizing. Still mostly doesn't address #4997 .
2017-11-13 02:06:32 +01:00
Justin M. Keyes
20c672a460
Merge #7530 'vim-patch:8.0.0226 vim-patch:8.0.0224'
2017-11-13 01:26:22 +01:00
KunMing Xie
6b8c34137c
vim-patch: NA
...
* vim-patch:8.0.0245
Problem: The generated zh_CN.cp936.po message file is not encoded properly.
Solution: Instead of using zh_CN.po as input, use zh_CN.UTF-8.po.
https://github.com/vim/vim/commit/16038d50c4309e8dee33c70ca2c9e7f73439c4df
* vim-patch:8.0.0248
Problem: vim_strcat() cannot handle overlapping arguments.
Solution: Use mch_memmove() instead of strcpy(). (Justin M Keyes,
closes vim/vim#1415 )
https://github.com/vim/vim/commit/45600ce8f2bead069882032f992623cd5a799ca0
2017-11-12 23:27:08 +01:00
ZyX
342239a9c5
unittests,viml/parser/expressions: Start adding asgn parsing tests
2017-11-13 01:11:13 +03:00
ZyX
556451a7f2
unittests,syntax: Check for sanity of highlight_init_cmdline
...
Also fixes some errors found.
2017-11-13 01:11:13 +03:00
James McCoy
0407ddb364
Use PRId64 to format Integer when calling api_set_error
...
Integer is a 64-bit type so using %d can produce incorrect results.
test/functional/api/highlight_spec.lua @ 35: highlight api nvim_get_hl_by_id
...W7Xi/neovim-0.2.1/test/functional/api/highlight_spec.lua:46: Expected objects to be the same.
Passed in:
(string) 'Invalid highlight id: 7671724'
Expected:
(string) 'Invalid highlight id: 30000'
2017-11-12 16:45:39 -05:00
Justin M. Keyes
881f9e42d1
process_close(): uv_unref() detached processes ( #7539 )
...
Doc for UV_PROCESS_DETACHED in uv.h mentions:
> child process will still keep the parent's event loop alive unless
> the parent process calls uv_unref() on the child's process handle.
ref #3944
2017-11-12 15:34:04 +01:00
ZyX
45445e2e03
unittests: Add some more edge test cases
2017-11-12 03:52:26 +03:00
ZyX
c7495ebcc0
viml/parser/expressions: Add support for parsing assignments
2017-11-12 02:18:43 +03:00
ZyX
1aa6276c29
viml/parser/expressions: Replace lambda-specific WantedNode entries
...
This way code will be easier to adapt to handling (partially) non-expressions
like :let lvalue part or :function definitions, and that would be needed in the
future both for proper completion support and for the Ex commands parser.
2017-11-12 00:03:45 +03:00
ckelsel
ea020f2e26
fix lint error
2017-11-11 09:04:48 +08:00
KunMing Xie
a2fdd0a72f
vim-patch:8.0.0237 ( #7531 )
...
Problem: When setting wildoptions=tagfile the completion context is not set
correctly. (desjardins)
Solution: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes vim/vim#1399 )
https://github.com/vim/vim/commit/ba47b51ff88d91c9bb5aa522183e23a656865697
2017-11-11 01:26:55 +01:00
KunMing Xie
4fa0970519
vim-patch:8.0.0242 ( #7532 )
...
Problem: Completion of user defined functions is not covered by tests.
Solution: Add tests. Also test various errors of user-defined commands.
(Dominique Pelle, closes vim/vim#1413 )
https://github.com/vim/vim/commit/65c836e6004647196ae0bc18e409a9e7b79207c0
2017-11-11 00:00:11 +01:00
KunMing Xie
faa15c5b83
vim-patch:8.0.0218 ( #7529 )
...
Problem: No command line completion for :cexpr, :cgetexpr, :caddexpr, etc.
Solution: Make completion work. (Yegappan Lakshmanan) Add a test.
https://github.com/vim/vim/commit/2b2207ba69c6b009e466a36eef0644ca723e16d3
2017-11-10 23:35:55 +01:00
Justin M. Keyes
f5d4da0144
:checkhealth : validate 'runtimepath' ( #7526 )
2017-11-10 22:37:54 +01:00
ckelsel
67a2207c4a
vim-patch:8.0.0226
...
Problem: The test for patch 8.0.0224 misses the CR characters and passes
even without the fix. (Christian Brabandt)
Solution: Use double quotes and \<CR>.
https://github.com/vim/vim/commit/1695f99d08076d77ed3015f1edf09a668a4d449a
2017-11-10 23:33:40 +08:00
ckelsel
7e8212c459
vim-patch:8.0.0224
...
Problem: When 'fileformats' is changed in a BufReadPre auto command, it
does not take effect in readfile(). (Gary Johnson)
Solution: Check the value of 'fileformats' after executing auto commands.
(Christian Brabandt)
https://github.com/vim/vim/commit/7a2699e868bca781e26b060a44fc714d87cfa4ba
2017-11-10 23:28:24 +08:00
Justin M. Keyes
9baa7ca37f
test/oldtest: count is not special in Nvim #7407
2017-11-09 11:11:12 +01:00
Marco Hinz
9837a9c401
compat: "v:count" distinct from "count" ( #7407 )
2017-11-09 02:20:12 +01:00
Justin M. Keyes
e98bcf0523
Merge #7465 has('ttyin'), has('ttyout')
2017-11-08 04:10:22 +01:00
Justin M. Keyes
2ca59638ba
vim-patch:b0d45e7f5354
...
Update runtime files.
https://github.com/vim/vim/commit/b0d45e7f5354375edd02afafde3bd37dac1515ff
2017-11-07 23:07:03 +01:00
Justin M. Keyes
4175dfac9a
vim-patch:01164a6546b4
...
Long overdue runtime update.
https://github.com/vim/vim/commit/01164a6546b4c635daf96a1f17d1cb2d07f32a66
2017-11-07 23:07:03 +01:00
Justin M. Keyes
10e5040b61
vim-patch:24a98a0eb772
...
Update runtime files
https://github.com/vim/vim/commit/24a98a0eb77245adc50facad8b735b20bfd31a7e
2017-11-07 20:16:48 +01:00
Justin M. Keyes
ae569ea57b
Merge #7500 'vim-patch: runtime'
2017-11-07 18:59:39 +01:00
Björn Linse
06fd32b8ff
ui: remove ext_cmdline noise ( #7486 )
...
Only send cmdline contents once per ui_flush.
Don't send extra redraws due to 'arshape', it makes no difference to
external ui.
2017-11-07 18:53:42 +01:00
Justin M. Keyes
39fa278216
vim-patch:f55e4c867f77
...
Updated runtime files
https://github.com/vim/vim/commit/f55e4c867f774d1f27973d06b07b97c0a4d6b968
2017-11-07 03:14:31 +01:00
Justin M. Keyes
bd17fa487d
vim-patch:bf92e3a3719f
...
Update translations.
https://github.com/vim/vim/commit/bf92e3a3719f255dbb30102ceb618e0eac7c9497
2017-11-07 02:49:53 +01:00
Justin M. Keyes
20e317e22a
po: remove duplicate definitions
2017-11-07 02:25:46 +01:00
Justin M. Keyes
85cfc4c4f9
vim-patch:74675a666b51
...
Updated runtime files and translations.
https://github.com/vim/vim/commit/74675a666b51edd61e0210132658d81a86c5102c
2017-11-07 01:46:19 +01:00
Justin M. Keyes
a39bf01958
vim-patch:3ec574f2b549
...
Update runtime files.
Includes changing &sw to shiftwidth() for all indent scripts.
https://github.com/vim/vim/commit/3ec574f2b549f456f664f689d6da36dc5719aeb9
2017-11-07 01:37:30 +01:00
Justin M. Keyes
599170de83
vim-patch:6aa8cea46d41
...
Update runtime files.
https://github.com/vim/vim/commit/6aa8cea46d4179b2617daae034063dd0d8054e35
2017-11-07 01:33:46 +01:00
Justin M. Keyes
c598c3ac77
doc: deprecate 'highlight'; remove howto.txt ( #7497 )
2017-11-07 00:51:03 +01:00
ZyX
4aebd00a9e
*: Fix linter errors
2017-11-06 20:28:37 +03:00