ZyX
043d8ff9f2
Merge branch 'master' into luaviml'/lua
2017-04-08 01:54:58 +03:00
Justin M. Keyes
13352c00f1
win: os_get_hostname() #5416 ( #6413 )
2017-04-07 19:46:33 +02:00
Nicolas Hillegeer
1813076c44
eval: delimit string with NUL byte ( #6467 )
...
A recent refactor left cpy without a NUL terminator, simplify the code
instead of patching over it.
Instead of plain memcpy, it'd be better to employ harder to misuse string
functions made for this purpose like xstrlcpy(), but path_tail() takes
char_u arguments and returns them, leading to a lot of ugly casting.
Fixes #6431 .
2017-04-07 12:29:17 +02:00
Justin M. Keyes
30e1cda8ac
completion: fix segfault with ignorecase+infercase ( #6452 )
...
Helped-by: Matthew Malcomson <hardenedapple@gmail.com>
Closes #6451
2017-04-06 21:35:03 +02:00
Carlo Abelli
c501d7c432
refactor/single-include: diff.h ( #6443 )
2017-04-06 14:48:42 +02:00
James McCoy
210b013ce7
vim-patch: Update regex for included_patches array ( #6449 )
...
28dafe3ff
const-ified the array without updating the regex.
[ci skip]
2017-04-06 02:10:20 +02:00
Justin M. Keyes
cde51dd6f4
Merge #6440 'test: Remove "tickle" hack'
2017-04-06 01:07:22 +02:00
Justin M. Keyes
8863af28b8
test: retry() works with asserts; error() not required.
2017-04-06 01:06:40 +02:00
Björn Linse
3b558e5d7b
tests: short form screen:except(func)
expects condition only. #6440
...
- Use this to properly test cursor shape events.
- tests: update screen_basic_spec to use `screen:expect` short form.
Clearer than using `screen:wait` directy.
2017-04-06 01:06:39 +02:00
Justin M. Keyes
4566f7c7cd
Merge #6432 from justinmk/guicursor
2017-04-04 15:26:32 +02:00
Justin M. Keyes
a7f34e1991
options: remove 'guiheadroom'
2017-04-04 14:19:26 +02:00
Justin M. Keyes
e348e256f3
'guicursor': Disable by default for unknown terminals.
...
User can still set guicursor explicitly in init.vim.
Closes #5990
Closes #6403
2017-04-04 14:19:26 +02:00
Justin M. Keyes
3ccd59ee82
'guicursor': enabled=false if 'guicursor' is empty
...
Closes #6429
Closes #6430
2017-04-04 14:19:26 +02:00
Justin M. Keyes
9d560d5c6b
Merge #6436 from ZyX-I/restart-includes-cleanup
...
Clean-up before restarting single-includes test
2017-04-04 14:16:14 +02:00
ZyX
017f64b970
ci: Also fail if last restart hang up
2017-04-04 04:59:30 +03:00
ZyX
dcad882256
ci: Do not fail csi_clean if there are no files to remove
2017-04-04 04:17:40 +03:00
ZyX
d59378a5ca
ci: Force make output coloring
2017-04-04 04:03:50 +03:00
ZyX
644db2165e
ci: Clean up when restarting single includes test
2017-04-04 03:58:10 +03:00
Yichao Zhou
bc6d868d00
'listchars': Whitespace
highlight group #6367
2017-04-03 14:10:40 +02:00
Justin M. Keyes
6afa7d66cd
Merge #6427 from ZyX-I/writefile-allow-omitting-fsync
...
eval: Make writefile() able to disable fsync()
2017-04-03 03:54:34 +02:00
ZyX
ae7d8d8ffb
ci: Do not mark test as failed if it is previous one which failed
2017-04-03 03:47:42 +03:00
ZyX
ac87c7e5ae
fileio: Fix most linter errors
...
One error is still kept: buf_write function is too large.
2017-04-03 03:46:44 +03:00
ZyX
dc75766081
tests: Fix testlint errors
2017-04-03 03:07:01 +03:00
ZyX
9912043103
functests: Test some :write errors
2017-04-03 03:04:10 +03:00
ZyX
2dbd49f73c
fileio: Save details about E212 error
2017-04-03 03:02:17 +03:00
ZyX
97a7f4745d
eval: Add s flag, use p_fs by default, error out on unknown flag
2017-04-03 02:11:27 +03:00
ZyX
5dcf280445
fileio: Refactor msg_add_fname to something which needs no comments
2017-04-03 02:03:05 +03:00
ZyX
1c41b9c775
fileio: Clean up IObuff-manipulation mess
2017-04-03 01:39:09 +03:00
ZyX
8eb598c08e
fixup!
2017-04-03 00:44:49 +03:00
ZyX
8dd9c6edd8
message: Do not use IObuff in emsgf
2017-04-03 00:40:48 +03:00
ZyX
364709bedb
fileio: Refactor errmsg handling
...
Adds os_strerror() result to a number of places. Also since I could not track
where err\* variables are NULL and where they are not, using macros to make sure
that all three variables are set at once.
Removes #ifdef UNIX around the use of os_fsync, makes it use os_close in place
of close in some places.
2017-04-03 00:35:29 +03:00
ZyX
b10880dadc
eval: Make writefile() able to disable fsync()
2017-04-02 22:11:35 +03:00
Nikolai Aleksandrovich Pavlov
ddfa0359c6
unittests: Make it easier to determine on which _spec line it crashed ( #6424 )
...
Benchmarks:
Before change: 17.78s user 3.48s system 94% cpu 22.525 total
After change: 25.38s user 4.46s system 101% cpu 29.317 total
2017-04-02 13:25:47 +02:00
Justin M. Keyes
58422f17d8
Merge #6423 from justinmk/guicursor
2017-04-02 02:32:36 +02:00
James McCoy
a7569b50b7
Merge pull request #6338 from jamessan/llvm-update
...
Bump LLVM to 3.9
2017-04-01 20:09:26 -04:00
Justin M. Keyes
1ad5644006
Merge #6409 from ZyX-I/separate-clint
...
cmake: Add `clint` target to build Makefile
2017-04-02 01:20:16 +02:00
James McCoy
16babc6687
tui: Only enable/disable mouse when there's something to do ( #6411 )
...
If we get a mouse_on/mouse_off event, but the mouse is already in the
corresponding state, there's no need to send the event up to the
terminal.
Closes #4394
2017-04-02 00:00:42 +02:00
Justin M. Keyes
3a69dbfca6
api/cursor_style_set: mode descriptions
2017-04-01 23:29:10 +02:00
Justin M. Keyes
c2826a7830
'guicursor': Empty means "block cursor in all modes".
...
Also: update default 'guicursor' to match the documentation.
2017-04-01 23:14:05 +02:00
Matthieu Coudron
54bab0019b
tui: 'guicursor' color
...
For now only supports valid hex colors (does not check for the validity
the hex color) when termguicolors is set, otherwise it won't attempt to
change the cursor color.
2017-04-01 23:14:05 +02:00
Matthieu Coudron
dd4a5fcbb6
tui: 'guicursor' shape #6044
...
Closes #2583
2017-04-01 23:14:05 +02:00
Justin M. Keyes
518f28f537
Merge #6422 from ZyX-I/fix-6420
...
eval,fileio: Omit additional fsync() call
2017-04-01 22:38:20 +02:00
Matthew Malcomson
337b6179df
'pastetoggle': support value >1 char ( #6421 )
...
If we `set pastetoggle=abcde`, and manually type it, then `vgetorpeek()`
sees part of the option before it has all been inserted into the
typebuffer.
To signify this it sets `keylen = KEYLEN_PART_KEY`, but the condition
about whether to return the current key from `vgetorpeek()` only checks
for `keylen = KEYLEN_PART_MAP`.
Add a check for `KEYLEN_PART_KEY` to account for the `'pastetoggle'`
option.
2017-04-01 21:50:29 +02:00
ZyX
19690d4a25
eval: Do not allocate FileDescriptor
2017-04-01 22:26:50 +03:00
Justin M. Keyes
0f6608d039
Merge #6418 from ZyX-I/better-unittests
2017-04-01 20:48:03 +02:00
ZyX
cc4523013f
eval,fileio: Omit additional fsync() call
...
Fixes #6420
2017-04-01 21:15:13 +03:00
ZyX
ac22238b6a
unittests: Replace two environment variables with one TRACE_LEVEL
2017-04-01 20:57:23 +03:00
Justin M. Keyes
33ff29fc74
Merge #6344 'vim-patch:7.4.2236,7.4.2306'
2017-04-01 17:42:15 +02:00
lonerover
45a13c4bbc
vim-patch:7.4.2306
...
Problem: Default value for 'langremap' is wrong.
Solution: Set the right value. (Jürgen Krämer) Add a test.
da9ce2cde1
2017-04-01 22:46:27 +08:00
lonerover
53da57d27a
vim-patch:7.4.2236
...
Problem: The 'langnoremap' option leads to double negatives. And it does
not work for the last character of a mapping.
Solution: Add 'langremap' with the opposite value. Keep 'langnoremap' for
backwards compatibility. Make it work for the last character of a
mapping. Make the test work.
920694c1b6
2017-04-01 22:45:36 +08:00