ZyX
f0b3029ad3
os: Add OS_STD*_FILENO constants
2017-07-04 18:37:01 +03:00
ZyX
72b3fd9664
os/fileio: Add ability to use os/fileio.c for file descriptors
...
Code imported from #6299
2017-07-04 18:37:01 +03:00
ZyX
5ab9e9f617
os/fileio: Add msgpack_file_write function
2017-07-04 18:37:01 +03:00
ZyX
94bd0f9915
main: Fix V522: potential NULL dereference
...
It is useless to use sbuffer here and print that to stdout, just using “fbuffer”
instead.
2017-07-04 18:37:01 +03:00
ZyX
63f72ac27c
shada: Fix linter error
2017-07-04 17:47:45 +03:00
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
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
e07e46f539
message: Fix :echo "\x80"
printing ~@<80>
2017-07-04 02:06:40 +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
ZyX
b97df0bdad
getchar: Fix linter error
2017-07-02 19:52:04 +03: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
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
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
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
Jakob Schnitzer
e8829710bc
Merge branch 'master' into option-fixes
2017-06-28 16:52:04 +02:00
ZyX
0ed95423de
ex_getln: Call highlight callback inside :try
2017-06-28 14:26:23 +03: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
James McCoy
3679752dbd
vim-patch:7.4.2318
...
Problem: When 'incsearch' is not set CTRL-T and CTRL-G are not inserted as
before.
Solution: Move vim/vim#ifdef and don't use goto.
349e7d94e6
2017-06-26 22:08:13 -04:00
James McCoy
0dd6455659
vim-patch:7.4.2268
...
Problem: Using CTRL-N and CTRL-P for incsearch shadows completion keys.
Solution: Use CTRL-T and CTRL-G instead.
1195669f9e
2017-06-26 22:08:11 -04:00
James McCoy
518b42db91
functests/legacy: Add lua version of test_search.vim
2017-06-26 22:07:28 -04:00
Justin M. Keyes
f34befe74c
Merge #6789 from ZyX-I/lua-path
...
lua: Add paths from &runtimepath to package.path and package.cpath
2017-06-27 02:29:15 +02:00
David Galeano
1ef2d768e7
socket.c: Disable Nagle's algorithm on TCP sockets ( #6915 )
...
Reducing latency is more interesting than optimizing bandwidth
for Nvim's typical use-cases.
2017-06-27 02:09:49 +02:00
ZyX
072a853fa2
ex_getln: Enable coloring for expression mode
2017-06-27 01:34:54 +03:00
ZyX
407abb3a6c
eval,ex_getln: Add support for coloring input() prompts
2017-06-27 01:34:54 +03:00
ZyX
d82741f8c0
ex_getln: Add some more tests, fix some found errors
2017-06-27 01:34:54 +03:00
ZyX
c1d21e9dd6
ex_getln: Add basic support for coloring command-line prompt
2017-06-27 01:34:54 +03:00
ZyX
7db2f658e8
ex_getln: Do not do arabic shaping unless needed
...
Should speed up execution without arabic characters a bit, slowing down with
arabic characters. More necessary, this allows coloring prompt without caring
about arabic shaping at the first iteration.
2017-06-27 01:34:54 +03:00
ZyX
90f62cc749
ex_getln: Clean up draw_cmdline a bit
2017-06-27 01:34:54 +03:00
raichoo
7955cf3515
vim-patch:7.4.2259
...
Problem: With 'incsearch' can only see the next match.
Solution: Make CTRL-N/CTRL-P move to the previous/next match. (Christian
Brabandt)
4d6f32cbfb
2017-06-26 07:36:36 -04:00
Björn Linse
8b375cf471
bufhl: fix move
2017-06-24 11:09:10 +02:00
Björn Linse
7873660e1e
bufhl: some style cleanup
2017-06-24 11:09:10 +02:00
Björn Linse
28a549d597
kbtree: make warning free and delete deprecated macros
2017-06-24 11:09:10 +02:00
Björn Linse
14e19b8aaf
kbtree: eliminate unneccesary heap allocation
2017-06-24 11:09:10 +02:00
Björn Linse
53cf88c27b
kbtree: use proper structs
2017-06-24 11:09:10 +02:00
Björn Linse
6712e08bba
kbtree: allow iterators to start at arbitrary position
2017-06-24 11:09:10 +02:00
Björn Linse
1eff241ec6
bufhl: use kbtree for bufhl
2017-06-24 11:09:10 +02:00