Jack Bracewell
2ea7bfc627
terminal: Support extra arguments in 'shell'. #4504
...
Tokenize p_sh if used as default in ex_terminal(). Previously p_sh was
used as the first arg in a list when calling termopen(), this would try
to call an untokenized version of shell, meaning if you had an argument
in 'shell':
set shell=/bin/bash\ --login
the command would fail.
Helped-by: oni-link <knil.ino@gmail.com >
Closes #3999
2017-03-17 17:47:33 +01:00
Justin M. Keyes
0c1f783164
Merge #6087 from justinmk/defaults
...
defaults: 'ruler', 'showcmd', 'belloff=all'
2017-03-17 13:00:19 +01:00
raichoo
10045cddb6
vim-patch:7.4.2113 #6287
...
Problem: Test for undo is flaky.
Solution: Turn it into a new style test. Use test_settime() to avoid
flakyness.
170b10b421
2017-03-17 12:34:53 +01:00
Matthew Malcomson
f6946c68ae
job-control: set CLOEXEC on pty processes. #5986
...
Before this change, new processes started with libuv prevented SIGHUP
from reaching pty processes (by keeping the ptmx file descriptor open).
2017-03-17 12:20:51 +01:00
Jack Bracewell
09583a791c
Replace hashtab with handle buffer functions
2017-03-16 18:26:46 +00:00
Justin M. Keyes
1dbe7a4dec
doc: handle_* function declarations
2017-03-16 18:44:10 +01:00
Justin M. Keyes
a90beeadbb
defaults: 'showcmd', 'belloff', 'ruler'
...
- Vim "unix default" of 'noshowcmd' is serving few users. And it's
inconsistent.
- 'ruler' and 'belloff=all' improve the out-of-the-box experience.
- Continue to use 'noshowcmd' and 'noruler' by default in the functional
tests to keep them fast.
TODO: Add a "disable slow stuff" command or mapping to address the
use-case of a very slow terminal connection.
2017-03-16 18:44:10 +01:00
raichoo
50953f9661
version.c: mark NA patch ( #6285 )
2017-03-15 23:43:26 +01:00
raichoo
297e8d0fda
version.c: mark NA patches ( #6282 )
2017-03-15 19:49:12 +01:00
Björn Linse
a5d03be7b8
api: bump api level to 2
2017-03-15 15:01:06 +01:00
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