ZyX
ed6756563c
eval/decode: Replace INIT_SPECIAL_DICT macros with inline function
2016-04-18 02:45:49 +03:00
ZyX
700b32a2b3
eval: Move some decoding functions to eval/decode.c
2016-04-18 02:45:49 +03:00
ZyX
3c39219550
eval: Get rid of VV_LEN constant
2016-04-18 02:45:49 +03:00
ZyX
85244e68e3
vim: Move *MSG* macros to message.h
...
Note: OUT* macros were removed because they are no longer used anywhere.
2016-04-18 02:45:49 +03:00
ZyX
41b44d114c
eval: Move encode.c to eval/encode.c
2016-04-18 02:45:49 +03:00
ZyX
704accfbfa
cmake: Refactor code that creates directories and lists C files
2016-04-18 02:45:49 +03:00
ZyX
e213ba1506
eval: Add jsondecode() function
2016-04-18 02:45:49 +03:00
ZyX
0f0e2bdfd4
encode: Do not use default case for v_type
2016-04-18 02:44:03 +03:00
ZyX
d70a322c40
eval: Add special variables v:false, v:null, v:none
2016-04-18 02:44:03 +03:00
ZyX
18903bd9b8
eval: Add special variable type
2016-04-18 02:44:03 +03:00
ZyX
256a5d2522
encode: Add a hint for static analyzer that cur_tv is not NULL
2016-04-18 02:44:03 +03:00
ZyX
68e58444b4
eval: Add jsonencode() function
...
Ref #3471
2016-04-18 02:44:03 +03:00
ZyX
44cbf45d26
eval: Split out typval_T dumping functions to nvim/encode.c
2016-04-18 02:44:03 +03:00
ZyX
5674546580
ex_getln: Make get_histtype accept length argument
2016-04-18 02:43:43 +03:00
ZyX
c0bab19cf5
option: Allow zero-length options
...
Code that expected NUL-terminated strings allowed them and this behaviour is
actually used.
2016-04-18 02:43:43 +03:00
ZyX
9261f1597f
option: Use findoption_len in do_set
2016-04-18 02:43:43 +03:00
ZyX
1168dbe343
option: Add find_key_option_len function
2016-04-18 02:43:43 +03:00
ZyX
459900b100
option: Add findoption_len function
...
It is like findoption(), but works with non-NUL-terminated strings.
2016-04-18 02:43:43 +03:00
ZyX
ebabdff5cd
keymap: Make replace_termcodes and friends accept length and cpo_flags
...
Reasons:
- One does not have to do `s[len] = NUL` to work with these functions if they do
not need to replace the whole string: thus `s` may be const.
- One does not have to save/restore p_cpo to work with them.
2016-04-18 02:43:43 +03:00
Justin M. Keyes
83c683f5e1
Merge pull request #4565 from KillTheMule/vim-patch-1282
...
vim-patch:7.4.{1000, 1001, 1030, 1282, 1284}
2016-04-17 19:19:06 -04:00
Justin M. Keyes
aae7e8b7dd
Merge pull request #4585 from dbarnett/vim-fc39ec
...
vim-patch:fc39ec
2016-04-17 18:44:25 -04:00
oni-link
164bcaf5c9
eval.c: Fix heap corruption error when constructing sourcing_name
...
A wrong format specifier and not enough allocated memory for
sourcing_name could lead to a heap corruption.
Original patch by Rui Abreu Ferreira (@equalsraf)
Fixes #4582
2016-04-17 23:31:47 +02:00
Justin M. Keyes
4043725991
Merge pull request #4574 from oni-link/fix.utfc_ptr2char_len
...
mbyte.c: Fix invalid memory access in utfc_ptr2char_len
2016-04-17 16:59:14 -04:00
oni-link
2eb5d73438
eval.c: Fix cut off of terminal exit message
...
The message array in on_process_exit() is too short
for a status > 99.
2016-04-17 11:09:55 +02:00
David Barnett
2895883154
vim-patch:fc39ec
...
Update runtime files.
fc39ecf8de
2016-04-16 23:06:24 -07:00
KillTheMule
2c827cea12
Add new style test test_viml.vim to the build
2016-04-15 20:17:07 +02:00
KillTheMule
1b1960ab90
Satisfy the linter
2016-04-15 20:17:07 +02:00
KillTheMule
f09f6ba2e4
Update version.c to 7.4.1284
2016-04-15 20:17:07 +02:00
KillTheMule
8a2cf943f7
vim-patch:7.4.1284
...
Problem: Test 49 fails.
Solution: Check for a different error message.
dc94a26a64
Applied cleanly except for version.c.
2016-04-15 20:17:07 +02:00
KillTheMule
e34cdf6e79
vim-patch:7.4.1030
...
Problem: test49 is still slow.
Solution: Move more tests from old to new style.
a2cce86307
Applied cleanly except for version.c.
2016-04-15 20:17:07 +02:00
KillTheMule
a0fec5d3db
vim-patch:7.4.1001
...
Problem: test_viml isn't run.
Solution: Include change in makefile.
f49e240c2d
Applied cleanly except for version.c. Needs to be added to the build system.
2016-04-15 20:17:07 +02:00
KillTheMule
622164d403
vim-patch:7.4.1000
...
Problem: Test 49 is slow and doesn't work on MS-Windows.
Solution: Start moving parts of test 49 to test_viml.
c06624661a
Applied cleanly except Makefile changes. File src/nvim/testdir/runtest.vim was
configured to set nocp for all tests. This option is not in nvim anymore, so it
was removed.
2016-04-15 20:17:07 +02:00
KillTheMule
824a6877ea
vim-patch:7.4.1282
...
Problem: Crash when evaluating the pattern of ":catch" causes an error.
(Dominique Pelle)
Solution: Block error messages at this point.
768ce2435a
Applied manually. Could not reproduce the crash both using vim and nvim,
therefore could not device a test.
Should be merged anyways, since it's in vim?
2016-04-15 20:17:07 +02:00
oni-link
11e8ec0cac
mbyte.c: Fix invalid memory access in utfc_ptr2char_len
...
To get an UTF-8 character, utf_ptr2char() is used.
But this function can read more than maxlen bytes, if an incomplete
byte sequence is used(first byte specifies a length > maxlen).
2016-04-15 17:35:50 +02:00
Justin M. Keyes
cf7d6a7a0b
defaults: Enable syntax/filetype for real.
...
Fixes a bug in #4252 : we enabled filetype/syntax if -u was passed,
but not otherwise. So it did not work for an empty or missing vimrc.
2016-04-15 02:23:26 -04:00
Thiago de Arruda
906271b53d
main.c: Free msgpack packer in --api-info handler to make ASAN happy
2016-04-11 23:07:51 -03:00
Mike Wadsten
80471df208
cscope: Fix mismatched types in ':cscope show' output
...
Type long on 32-bit systems is typically 32 bits, but
PRId64 is 64 bits. This mismatch leads to bad output
or segfaults on :cs show.
Fixes #4537
2016-04-10 19:11:17 -05:00
Justin M. Keyes
8d37201ed2
spell: Fix argument and avoid redundant prompt.
...
In #3027 we deferred the "missing spell file" prompt until VimEnter, but
we were sending the wrong argument (should be "en", not "en_us").
This also caused redundant prompts if user answers "No" to the download
prompt invoked by the SpellFileMissing event.
Closes #3966
Closes #4406
2016-04-10 04:27:39 -04:00
Justin M. Keyes
bf2c2b34cf
Merge pull request #4357 from jbradaric/vim-7.4.1105
...
vim-patch:7.4.1105
2016-04-09 14:14:55 -04:00
Shougo Matsushita
d227c843bf
complete: noinsert/noselect should not set 'modified'. #4509
2016-04-09 13:36:37 -04:00
huchet
52a830fec6
Enabled -Wconversion in charset.c
2016-04-06 13:32:02 +00:00
Charles Joachim
55844eee10
buffer.c: change return type to bool
...
Co-authored-by: Wayne Rowcliffe (@war1025)
2016-04-03 15:39:33 -04:00
Shougo Matsushita
1a9be28c75
vim-patch:7.4.1425
...
Problem: There are still references to MS-DOS support.
Solution: Remove most of the help txt and install instructions. (Ken Takata)
6e722e2f94
2016-04-02 11:24:23 +09:00
Björn Linse
6eda7c0e5f
api/buffer: deprecate old line and line slice functions
2016-04-01 11:30:00 +02:00
Björn Linse
51c7818d42
api/buffer: introduce buffer_[gs]et_lines with new indexing convention.
...
-1 is index past the end, and -2 is the index of the last element.
This eliminates the need for include_start/include_end.
Allow the handling of out-of-bounds to be configurable.
2016-04-01 11:29:51 +02:00
Thiago de Arruda
b8643f69c1
Merge PR #4492 'vim-patch:7.4.{1641,1643,1652,1654}'
2016-03-31 19:22:38 -03:00
Justin M. Keyes
4b8f27338f
Merge pull request #4510 from bfredl/termfix
...
terminal.c: temporary fix for incorrect paste handling
2016-03-31 11:43:02 -07:00
Björn Linse
14c9b30f2e
terminal.c: temporary fix for incorrect paste handling
2016-03-31 15:14:25 +02:00
James McCoy
7558f42f7d
vim-patch:7.4.1654
...
Problem: Crash when using expand('%:S') in a buffer without a name.
Solution: Don't set a NUL. (James McCoy, closes vim/vim#714 )
52c6eaffd4
2016-03-30 08:30:35 -04:00
James McCoy
62c0d99474
vim-patch:7.4.1652
...
Problem: Old style test for fnamemodify().
Solution: Turn it into a new style test.
610cc1b9b3
2016-03-30 08:30:35 -04:00