Commit Graph

3110 Commits

Author SHA1 Message Date
Wayne Rowcliffe
fe99930c46 Convert FOR_ALL_WINDOWS to use a locally declared pointer 2014-09-08 17:27:41 -05:00
Justin M. Keyes
3f5482d325 Merge pull request #1107 from fmoralesc/matchaddpos
Add matchaddpos()-related vim patches. [vim-patch: 7.4.330, 7.4.334, 7.4.343, 7.4.344, 7.4.362]
2014-09-05 20:57:41 -04:00
Felipe Morales
d860ba45e2 vim-patch: 7.4.344
Problem:    Unnecessary initializations and other things related to
	    matchaddpos().
Solution:   Code cleanup. (Alexey Radkov)

https://code.google.com/p/vim/source/detail?r=ce284c205558d103326a4c3f22f181774690b3eb
2014-09-04 00:18:25 -04:00
Felipe Morales
15d86890d4 vim-patch: 7.4.343
Problem:    matchdelete() does not always update the right lines.
Solution:   Fix off-by-one error.  (Ozaki Kiichi)

https://code.google.com/p/vim/source/detail?r=539ce56d8f35fe2deb5c4f57335e1adf97ae4e74
2014-09-04 00:18:25 -04:00
Felipe Morales
9d7e3336cf vim-patch: 7.4.362
Problem:    When matchaddpos() uses a length smaller than the number of
bytes in the (last) character the highlight continues until the end of
            the line.
Solution:   Change condition from equal to larger-or-equal.

https://code.google.com/p/vim/source/detail?r=7fa2bed947fde3514a700c96861a537d816d6fd4
2014-09-04 00:18:25 -04:00
Felipe Morales
a8124602f0 vim-patch: 7.4.334
Problem:    Unitialized variables, causing some problems.
Solution:   Initialize the variables. (Dominique Pelle)

https://code.google.com/p/vim/source/detail?r=03d260a8ea0c0c67f424c387dbe2af5754e5e589
2014-09-04 00:18:24 -04:00
Felipe Morales
bf3d945798 vim-patch: 7.4.330
Problem:    Using a regexp pattern to highlight a specific position can
be slow.
Solution:   Add matchaddpos() to highlight specific positions
efficiently.
(Alexey Radkov.)

https://code.google.com/p/vim/source/detail?r=f9fa2e506b9f07549cd91074835c5c553db7b3a7
2014-09-04 00:18:24 -04:00
Stefan Hoffmann
7ac191ab10 fileinfo: change returntype of os_fileinfo_size
off_t -> uint64_t
2014-08-31 15:47:44 +02:00
Stefan Hoffmann
10813ce38c fileid: rename os_file_id_equal_file_info 2014-08-31 15:47:43 +02:00
Stefan Hoffmann
3cf7a17a44 fileid: rename os_file_id_equal 2014-08-31 15:47:36 +02:00
Stefan Hoffmann
4e43095ab2 fileid: rename os_get_file_id 2014-08-31 15:43:40 +02:00
Stefan Hoffmann
8a66f4f245 fileinfo: rename os_file_info_get_inode 2014-08-31 15:42:19 +02:00
Stefan Hoffmann
6e3dce144a fileinfo: rename os_file_info_get_id 2014-08-31 15:41:03 +02:00
Stefan Hoffmann
edcc1a9732 fileinfo: rename os_file_info_id_equal 2014-08-31 15:39:33 +02:00
Stefan Hoffmann
5d074a0aa6 fileinfo: rename os_get_file_info{,_link,_fd} 2014-08-31 15:37:55 +02:00
Stefan Hoffmann
9ee1c3604c fileinfo: implement os_fileinfo_blocksize 2014-08-31 15:33:23 +02:00
Stefan Hoffmann
e85fe0957d fileinfo: implement os_fileinfo_hardlinks 2014-08-31 15:22:38 +02:00
Stefan Hoffmann
aa378acdf5 fileinfo: implement os_fileinfo_size
this replaces os_get_file_size and file_info.stat.st_size
2014-08-31 15:15:02 +02:00
Thiago de Arruda
51438d8e14 channel: Remove code for automatically closing in channel_send_call
This was causing a segfault(reported in #1125) because channels are already
closed by `parse_msgpack` when the connection ends. Also fix the RPC stack
overflow error message
2014-08-31 09:32:45 -03:00
Justin M. Keyes
9ede170e7e clang: Null pointer passed as an argument to a 'nonnull' parameter 2014-08-30 17:18:25 -04:00
Thiago de Arruda
a66d2d1538 msgpack-rpc: Always use arrays when sending events or calls
This is required by the msgpack-RPC specification. Also, the
send_call/send_event functions were refactored to accept a variable number of
arguments
2014-08-29 22:08:58 -03:00
Thiago de Arruda
aa23d2f835 msgpack-rpc: Accept method names in requests 2014-08-29 22:08:58 -03:00
Justin M. Keyes
db782dc486 clang: Null pointer passed as an argument to a 'nonnull' parameter #1090 2014-08-28 16:11:22 -04:00
Thiago de Arruda
5b7a66ec3d api: Implement '--embedded-mode' command-line option
This option makes nvim run in "embedded mode", which creates an API channel via
stdin/stdout and disables all terminal-related code
2014-08-28 14:18:05 -03:00
Thiago de Arruda
a1400896b3 channel: Implement channel_from_stdio function
This function can be used to create an API channel that reads/writes from/to
stdin/stdout
2014-08-28 14:18:05 -03:00
Thiago de Arruda
8e683a0ae9 channel: fix channel buffer size 2014-08-28 14:18:05 -03:00
Thiago de Arruda
dc34f9fc94 channel: Fix channel not being closed when the RStream reaches EOF 2014-08-28 14:18:05 -03:00
Thiago de Arruda
801ed0e0a3 wstream: Implement wstream_set_file
It's analogous to rstream_set_file but only supports pipes(Support for regular
files may be added later). This function was added to support creating API
channels via stdout.
2014-08-28 14:17:58 -03:00
Justin M. Keyes
665c3cc334 Merge pull request #1104 from Hinidu/vim-patch-7.4.220
vim-patch:7.4.220
2014-08-25 01:52:30 -04:00
Paul Burlumi
0cced2ea81 coverity/62620: fix uninitialized scalar variable 2014-08-24 23:45:55 +01:00
Pavel Platto
fc2020a140 vim-patch:7.4.220
Problem:    Test 105 does not work in a shadow dir. (James McCoy)
Solution:   Omit "src/" from the checked path.

https://code.google.com/p/vim/source/detail?r=v7-4-220
2014-08-22 10:50:30 +03:00
Pavel Platto
24f585a68c Mark patches 176, 185 and 189 as NA 2014-08-22 10:32:43 +03:00
Justin M. Keyes
fd46f22d01 Merge pull request #1101 from atwupack/vp-7.4.339
vim-patch:7.4.339
2014-08-22 01:51:24 -04:00
André Twupack
5f3e677e21 vim-patch:7.4.339
Problem:    Local function is available globally.
Solution:   Add "static".

https://code.google.com/p/vim/source/detail?r=v7-4-339
2014-08-21 19:52:10 +02:00
André Twupack
bc56d3a988 vim-patch:7.4.296
Problem:    Can't run tests on Solaris.
Solution:   Change the way VIMRUNTIME is set. (Laurent Blume)

https://code.google.com/p/vim/source/detail?r=v7-4-296
2014-08-21 19:06:07 +02:00
Justin M. Keyes
51ae9c6437 Merge pull request #840 from ZyX-I/generate-ex_cmds
Use lua generator in place of ex_cmds_defs header trick
2014-08-21 10:07:46 -04:00
ZyX
de58394f34 Extend documentation 2014-08-20 20:21:37 +04:00
ZyX
1e11de5385 Fix problem with test47: addition is not bitwise OR
:diffsplit command used to include some flag value twice. If I was using bitwise
OR it would be OK, but I had addition here. Changed to use bitwise OR.
2014-08-20 20:21:37 +04:00
ZyX
3becb5fd21 Use lua generator in place of ex_cmds_defs header trick
Closes #788
Fixes #379
Ref #549
2014-08-20 20:21:37 +04:00
Felipe Morales
3b0f7fe593 update src/nvim/testdir/Makefile
include breakindent and list related tests
2014-08-20 08:27:23 -04:00
Felipe Morales
359262d58d vim-patch: 7.4.352
Problem:    With 'linebreak' a tab causes a missing line break.
Solution:   Count a tab for what it's worth also for shorter lines.
            (Christian Brabandt)
2014-08-20 08:27:23 -04:00
Felipe Morales
2e1c745869 vim-patch:7.4.388
Problem:    With 'linebreak' set and 'list' unset a Tab is not counted
            properly. (Kent Sibilev)
Solution:   Check the 'list' option. (Christian Brabandt)
2014-08-20 08:27:22 -04:00
Felipe Morales
91aabcb75b vim-patch:7.4.370
Problem:    Linebreak test fails when encoding is not utf-8. (Danek
Duvall)
Solution:   Split the test in a single byte one and a utf-8 one.
(Christian Brabandt)
2014-08-20 08:27:11 -04:00
Felipe Morales
244ea63724 vim-patch:7.4.371
Problem:    When 'linebreak' is set control characters are not correctly
displayed. (Kimmy Lindvall)
Solution:   Set n_extra. (Christian Brabandt)
2014-08-20 05:19:57 -04:00
Felipe Morales
dfdfee0260 vim-patch: 7.4.353
Make 'breakindent' work with the 'list' option.

Originally patched in vim patch 7.4.353, by chrisbra
(https://code.google.com/p/vim/source/detail?r=d42a1d3b74d40f580359dbd139d2d0dfa7235252)

Updated version.c.
2014-08-20 05:19:57 -04:00
Felipe Morales
22c782bcb2 vim-patch: 7.4.346
Do not cache "brishift".

Indent was not updated when changing 'breakindentopt'.

Reported by itchiny, fixed by chrisbra in vim patch 7.3.346
(https://code.google.com/p/vim/source/detail?r=3248c6e40aee01a7254d111dd846c6ec7889a804).
2014-08-20 05:19:57 -04:00
Felipe Morales
47391b18e2 Port vim's patch 7.4.338 ('breakindent') 2014-08-20 05:19:49 -04:00
Justin M. Keyes
bbefc73c55 Merge pull request #1062 from atwupack/vp-7.4.230+231
vim-patch:7.4.231
2014-08-20 00:18:14 -04:00
Justin M. Keyes
95efb3624b vim-patch:7.4.317 #1076
Problem:    Crash when starting gvim.  Issue 230.
Solution:   Check for a pointer to be NULL. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=8ffcb546d782
2014-08-20 00:09:21 -04:00
Justin M. Keyes
e1c330a486 Merge pull request #1024 from war1025/dev/for_all_buffers
Add FOR_ALL_BUFFERS helper
2014-08-19 23:49:25 -04:00