Björn Linse
9500ecdda5
api: add detailed checks for compatibility and correct "since" value
2017-03-15 15:01:06 +01:00
Björn Linse
da6f4c146e
api: implement FUNC_API_SINCE
2017-03-15 15:01:06 +01:00
Justin M. Keyes
ec4e84210b
Merge #6254 'vim-patch:7.4.2135,7.4.2144,7.4.2151'
2017-03-15 14:10:56 +01:00
Justin M. Keyes
3b52e3c4c8
Merge #6252 from jamessan/vim-7.4.2069
...
vim-patch:7.4.2069,7.4.2101,7.4.2222,7.4.2223
2017-03-15 13:47:13 +01:00
lonerover
227859ea79
vim-patch:7.4.2264 ( #6275 )
...
Problem: When adding entries to an empty quickfix list the title is reset.
Solution: Improve handling of the title. (Yegappan Lakshmanan)
2b529bb626
2017-03-14 15:07:48 +01:00
lonerover
76829898bd
vim-patch:7.4.2305
...
Problem: Marks, writefile and nested function tests are old style.
Solution: Turn them into new style tests. (Yegappan Lakshmanan)
19a1669ffc
2017-03-13 20:24:48 +08:00
lonerover
ec4c12570c
vim-patch:7.4.2208
...
Problem: Test for mappings is old style.
Solution: Convert the test to new style.
2d1a248762
2017-03-13 20:11:24 +08:00
Justin M. Keyes
3f555cce3d
Merge #6261 from lonerover/vim-ac80999
...
vim-patch: ac80999,7.4.2185,7.4.2187,7.4.2196
2017-03-13 03:06:12 +01:00
Matthieu Coudron
71d4b81b4c
vim-patch:8.0.0453 ( #6266 )
...
Problem: Adding fold marker creates new comment.
Solution: Use an existing comment if possible. (LemonBoy, closes vim/vim#1549 )
025a6b708a
2017-03-13 01:54:35 +01:00
Justin M. Keyes
c42aebf23e
Merge #6264 'coverity fixes'
2017-03-12 20:18:55 +01:00
raichoo
b45ddf731b
terminal: disable 'list' by default ( #6246 )
2017-03-12 22:42:22 +01:00
Justin M. Keyes
c5e61b41a5
DirChanged: avoid redundant events on 'autochdir'
2017-03-12 15:45:50 +01:00
Justin M. Keyes
d9fcbc2cfb
DirChanged: trigger when switching scopes
...
Closes #6054
2017-03-12 14:39:32 +01:00
Justin M. Keyes
99a1a58c66
DirChanged: Publish _after_ updating win/tab CWD.
...
So getcwd() works correctly during DirChanged event.
Closes #6260
2017-03-12 14:39:32 +01:00
Sander Bosma
10a5825b95
coverity/155507: remove condition where both branches were identical
...
`keylen` was always set to 0 from both branches of an if-statement. This
condition is removed, and the code is simplified based on the fact that
`keylen` is always 0 in this code. Also updated the surrounding comments,
some of which were outdated.
2017-03-12 14:18:13 +01:00
Justin M. Keyes
82117da5df
tabpage_S: Name tp_localdir per convention.
2017-03-12 12:39:20 +01:00
lonerover
013a9f9a04
vim-patch:7.4.2196
...
Problem: glob2regpat test doesn't test everything on MS-Windows.
Solution: Add patterns with backslash handling.
91c5262b19
2017-03-12 11:40:38 +08:00
lonerover
a4b57c2089
vim-patch:7.4.2187
...
Problem: glob2regpat test fails on Windows.
Solution: Remove the checks that use backslashes.
7547a78446
2017-03-12 11:37:31 +08:00
lonerover
9f13983de2
vim-patch:7.4.2185
...
Problem: Test glob2regpat does not test much.
Solution: Add a few more test cases. (Dominique Pelle)
71dd9744cf
2017-03-12 11:36:12 +08:00
lonerover
ce6d2fbb61
vim-patch:ac80999
...
add missing test file
ac80999985
2017-03-12 11:33:49 +08:00
James McCoy
d72c177b2a
lint
2017-03-11 20:32:39 -05:00
James McCoy
2ed2b1d505
vim-patch:7.4.2223
...
Problem: Buffer overflow when using latin1 character with feedkeys().
Solution: Check for an illegal character. Add a test.
d3c907b5d2
2017-03-11 20:32:38 -05:00
James McCoy
eaf1f9b9dc
vim-patch:7.4.2222
...
Problem: Sourcing a script where a character has 0x80 as a second byte does
not work. (Filipe L B Correia)
Solution: Turn 0x80 into K_SPECIAL KS_SPECIAL KE_FILLER. (Christian
Brabandt, closes vim/vim#728 ) Add a test case.
6bff02eb53
2017-03-11 20:32:27 -05:00
James McCoy
564e9dc17f
vim-patch:7.4.2101
...
Problem: Looping over windows, buffers and tab pages is inconsistant.
Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
2932359000
2017-03-11 20:32:09 -05:00
James McCoy
5674057e3a
vim-patch:7.4.2069
...
Problem: spell.c is too big.
Solution: Split it in spell file handling and spell checking.
9ccfebddc3
2017-03-11 20:32:02 -05:00
Sander Bosma
e66c6dd9d5
coverity/155501: fix bug where P_NO_DEF_EXP was ignored
2017-03-11 19:09:55 +01:00
Sander Bosma
4ca8a69067
coverity/133900: intitialize scalar variable in struct
2017-03-11 19:09:17 +01:00
Daniel Hahler
eb8cbfc8f5
vim-patch:8.0.0068 ( #6243 )
...
Problem: Checking did_throw after executing autocommands is wrong. (Daniel
Hahler)
Solution: Call aborting() instead, and only when autocommands were executed.
21662be221
2017-03-11 13:56:23 +01:00
lonerover
2ecab2193d
vim-patch:7.4.2151
...
Problem: Quickfix test fails on MS-Windows.
Solution: Close the help window. (Christian Brabandt)
cf25fdb8f1
2017-03-11 19:07:05 +08:00
lonerover
6311ec3a63
vim-patch:7.4.2144
...
Problem: On MS-Windows quickix does not handle a line with 1023 bytes
ending in CR-LF properly.
Solution: Don't consider CR a line break. (Ken Takata)
796aa9c804
2017-03-11 19:02:10 +08:00
lonerover
3de3340132
vim-patch:7.4.2135
...
Problem: Various tiny issues.
Solution: Update comments, white space, etc.
89eaa4185e
2017-03-11 18:26:03 +08:00
raichoo
1743df82f9
'cpoptions': "_" flag to toggle cw
behaviour #6235
...
`cw` and `cW` behave like `ce` and `cE` respectively. This is
inconsistent compared to `dw` and `dW`.
Introduce a new cpoptions flag "_" to toggle the Vi behavior.
Closes #6234
Patch-by: Christian Brabandt <cblists@256bit.org >
References:
https://github.com/chrisbra/vim-mq-patches/blob/master/cpo_changeword
https://groups.google.com/d/msg/vim_use/aaBqT6ECkA4/ALf4odKzEDgJ
https://groups.google.com/d/msg/vim_dev/Dpn3xtUF16I/T6JcOPKN6usJ
http://www.reddit.com/r/vim/comments/26nut8/why_does_cw_work_like_ce/
2017-03-10 19:24:04 +01:00
Gavin Thomas Claugus
59ea30adda
version.c: mark NA patches ( #6242 )
...
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com >
2017-03-10 00:19:42 +01:00
Jurica Bradarić
58b5e14387
vim-patch:7.4.2299 ( #6232 )
...
Problem: QuickFixCmdPre and QuickFixCmdPost autocommands are not always
triggered.
Solution: Also trigger on ":expr", ":cbuffer", etc. (Yegappan Lakshmanan)
04c4ce650f
2017-03-07 23:31:15 +01:00
James McCoy
f613dd016a
Merge pull request #6225 from jamessan/vim-7.4.2051
...
vim-patch:7.4.2051,7.4.2068,7.4.2097
2017-03-07 09:03:52 -05:00
Justin M. Keyes
70bbd5a7ef
Merge #6222 from jbradaric/vim-7.4.2220
...
vim-patch:7.4.2220,7.4.2265
2017-03-07 14:07:43 +01:00
Jurica Bradaric
b9cea7f13f
vim-patch:7.4.2265
...
Problem: printf() isn't tested much.
Solution: Add more tests for printf(). (Dominique Pelle)
76efafba2a
2017-03-07 08:06:05 +01:00
Matthew Malcomson
6fe677c108
api: nvim_buf_set_lines(): Avoid invalid ml_get. #6019
...
When the buffer that nvim_buf_set_lines() is changing is not in any vim
window, fix_cursor() leads to calling ml_get_buf() with an invalid line
number. The condition that fix_cursor() was called on was (buf ==
curbuf), but this is always true because of the call to
switch_to_win_for_buf() earlier in the function.
Instead this should be predicated on (save_curbuf.br_buf == NULL)
2017-03-07 01:29:08 +01:00
James McCoy
532197b4f9
lint
2017-03-06 15:36:14 -05:00
James McCoy
52e56954c6
vim-patch:7.4.2097
...
Problem: Warning from 64 bit compiler.
Solution: use size_t instead of int. (Mike Williams)
d4f31dc454
2017-03-06 15:36:14 -05:00
James McCoy
4e3a2784ec
vim-patch:7.4.2068
...
Problem: Not all arguments of trunc_string() are tested. Memory access
error when running the message tests.
Solution: Add another test case. (Yegappan Lakshmanan) Make it easy to run
unittests with valgrind. Fix the access error.
b9644433d2
2017-03-06 15:36:09 -05:00
Jurica Bradaric
04b91d6b89
strings.c: Fix problems found during code review.
2017-03-06 21:35:48 +01:00
Jurica Bradaric
2f80360e9a
vim-patch:7.4.2220
...
Problem: printf() gives an error when the argument for %s is not a string.
(Ozaki Kiichi)
Solution: Behave like invoking string() on the argument. (Ken Takata)
e5a8f35b42
2017-03-06 21:35:48 +01:00
James McCoy
7217360e34
vim-patch:7.4.2051
...
Problem: No proper testing of trunc_string().
Solution: Add a unittest for message.c.
502ae4ba63
2017-03-06 15:09:40 -05:00
raichoo
60fa3aa143
linter: make os_unix.c pass the linter
2017-03-06 13:18:52 +01:00
raichoo
8f0f1a76c2
make backtick-expansion work with shell=fish
2017-03-06 13:18:24 +01:00
Justin M. Keyes
483e8257e5
vim_getenv: $VIMRUNTIME fallback: ../share/nvim/runtime ( #6223 )
...
Do this on all systems, so that portable builds work everywhere. This
allows us to ship archives with this folder structure:
bin/nvim
share/nvim/runtime
then ./bin/nvim works without the user needing to explicitly set VIMRUNTIME.
2017-03-06 04:04:25 +01:00
Tommy Allen
6777b6ecbc
ui: Fix TUI resize bug
...
statusline still disappears in some cases, but this change is a net
improvement.
References #3929 #5692 #4884 #6157
2017-03-05 22:17:32 +01:00
Justin M. Keyes
a568816253
lint
...
You cannot escape clint...
2017-03-05 22:17:15 +01:00
James McCoy
a314f6d79f
Merge pull request #6215 from jamessan/coverity-model
...
ci: Add Coverity modeling
2017-03-05 09:17:50 -05:00