James McCoy
ac47f8a506
Merge pull request #6514 from jamessan/gcc-7-fixes
...
Fix GCC 7 issues
2017-05-13 07:51:01 -04:00
Justin M. Keyes
ae3d5e5ecc
Merge #6731 from ZyX-I/fix-oneline-script-skip
2017-05-13 11:32:23 +02:00
ZyX
50398e10fe
ex_getln: Fix :lang code execution when skipping
...
Fixes #6727
2017-05-13 03:06:34 +03:00
James McCoy
f3a508b4a3
oldtests: Fix spelling of testname in s:flaky
2017-05-12 17:32:26 -04:00
James McCoy
ad80a83a1a
lint
2017-05-12 17:07:25 -04:00
James McCoy
901c8fbcdb
regexp_nfa: Fix invalid fallthrough in character class detection
...
When the end character in a range matches a different standard range
(e.g., [0-z]), the range would be incorrectly detected as the class of
the end character (CLASS_az).
Instead of using a fallthrough, immediately FAIL when the end character
doesn't match the expected range.
2017-05-12 17:07:25 -04:00
James McCoy
5ec72aadbf
*: Use __attribute__((fallthrough)) where comments aren't supported
...
Although GCC now detects possibly unintentional fall through, there
rules around which the comments are detected are rather strict. In
cases where a comment isn't detected, upstream [recommends] using their
fallthrough attribute.
[recommends]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817#c11
2017-05-12 17:07:25 -04:00
James McCoy
0ff959329b
*: Comment intentional fallthroughs
...
Falling through a switch case should be commented so it's clear that
behavior is intentional.
2017-05-12 12:01:25 -04:00
James McCoy
d840ff7b70
ex_cmds: Use NULL, not NUL, to check for strrchr failure
2017-05-12 10:51:46 -04:00
James McCoy
63ad4caab5
os_unix: Mark mch_exit as NORETURN
2017-05-12 10:51:46 -04:00
James McCoy
77f8aebf41
func_attr: Support "noreturn" attribute
2017-05-12 10:51:46 -04:00
Justin M. Keyes
147b4b63af
doc ( #6719 )
...
Closes #6712
2017-05-11 14:34:48 +02:00
Björn Linse
32b422cf90
ui_events: erase internal type HlAttrs ( #6718 )
2017-05-11 08:40:42 +02:00
Björn Linse
2d5920ae1a
api: always use prefix FUNC_API, also change NOEVAL to REMOTE_ONLY
2017-05-10 17:37:34 +02:00
Björn Linse
3adcc0c50b
os/shell.c: temporary solution to not put ctrl chars on the screen grid
2017-05-10 17:36:34 +02:00
Björn Linse
e82cb5de4a
api: add metadata for ui events
2017-05-10 17:36:31 +02:00
Björn Linse
7d6af9985c
ui: cleanup UI_CALL wrappers
...
remove pointless control chars in the text stream
2017-05-10 16:14:12 +02:00
Björn Linse
c778311505
generators: separate source generators from scripts
2017-05-10 16:14:12 +02:00
Björn Linse
4eb781ce1d
api: use generated events for popupmenu and tabline
2017-05-10 16:14:12 +02:00
Björn Linse
489d10c57c
api: generate ui events
2017-05-10 16:14:10 +02:00
ZyX
5e6f7e1d55
eval: Alter E5050 error message, test that
2017-05-10 15:52:49 +03:00
ZyX
f4d5d5250a
eval: Refactor get_user_input to support dictionary
2017-05-10 15:52:48 +03:00
Nikolai Aleksandrovich Pavlov
c66fd37603
lua/converter: Fix typo in assert condition ( #6708 )
...
Ref https://github.com/neovim/neovim/pull/4411#issuecomment-300248206
2017-05-10 08:44:28 +02:00
ZyX
823b35e341
strings: Return NUL from vim_strchr for invalid input
2017-05-09 14:41:24 +03:00
Justin M. Keyes
0e873a30f3
Merge #4411 from ZyX-I/luaviml'/lua
2017-05-09 00:39:17 +02:00
ZyX
85bf64da0a
api/window: Fix memory leak in nvim_win_set_cursor
2017-05-08 20:55:00 +03:00
ZyX
db1155f713
cmake: Workaround CMake not supporting INCLUDE_DIRECTORIES target prop
2017-05-08 18:42:57 +03:00
Justin M. Keyes
b23aa1cf09
Merge #6597 'winhighlight'
2017-05-08 16:17:57 +02:00
Justin M. Keyes
4c3d7b29ec
Merge #6595 from justinmk/term-refresh-on-exit
2017-05-08 15:18:08 +02:00
Carlo Abelli
aace622ca5
refactor/single-include ( #6687 )
2017-05-08 15:08:12 +02:00
ZyX
09f849b600
Merge branch 'master' into luaviml'/lua
2017-05-08 15:43:45 +03:00
Justin M. Keyes
7c1a5d1d40
Revert "event/process.c: send SIGTERM directly ( #6644 )"
...
This reverts commit 34c3f03013
.
2017-05-08 13:49:23 +02:00
Richard Adenling
a6f74debc0
terminal: refresh before on_exit. #5217
...
References #3030
References https://github.com/radenling/vim-dispatch-neovim/issues/6
The terminal is updated by a timer, but on_exit needs the final state.
Before this change, on_exit callback could see a stale terminal buffer.
Helped-by: oni-link <knil.ino@gmail.com >
2017-05-08 13:49:14 +02:00
Justin M. Keyes
a9605bb4af
Merge #6460 from ZyX-I/1476-changes
...
Refactor functions which find character in a string
2017-05-08 13:45:14 +02:00
Björn Linse
bfcaf36404
options: allow different highlights in windows
2017-05-08 12:41:39 +02:00
Björn Linse
443399c27d
options: consolidate updates for window string options affected by copy_winopt
...
update note at options.c head about window options
2017-05-05 10:55:07 +02:00
Carlo Abelli
631d55ada0
refactor/single-include ( #6688 )
2017-05-05 10:28:12 +02:00
Daniel Hahler
34c3f03013
event/process.c: send SIGTERM directly ( #6644 )
...
Send SIGTERM to processes directly, instead of waiting for ~1s.
- removes TERM_TIMEOUT
- changes KILL_TIMEOUT to milliseconds
- removes Process.term_sent
2017-05-04 16:38:25 +02:00
Jonathan de Boyne Pollard
052c2d0a0f
tui: Also fix "linux*" terminfo entries. #6673
...
The terminfo entry for linux only advertises 8 colours, but nvim tries
to make it display 16 colours anyway, resulting in erroneous SGR control
sequences for colours 8 and above. The Linux kernel terminal emulator
itself has actually understood the 256-colour control sequences since
version 4.8 and the 16-colour control sequences since version 4.9. Thus
we apply the same terminfo fixup as we apply for *xterm* and *256*, to
emit the 16-colour and 256-colour control sequences even if terminfo's
setaf and setab do not advertise them.
2017-05-04 16:18:36 +02:00
James McCoy
4f75e2f95c
utf16_to_utf8: Allocate space for converted string and NUL
...
References #6646
2017-05-03 20:27:39 -04:00
Justin M. Keyes
0502ac47fb
'guicursor': tui: Konsole: blinkon0 should disable blinking.
2017-05-03 18:08:54 +02:00
Justin M. Keyes
5fd1d09aa5
test/legacy: Add Test_with_partial_callback to s:flaky. ( #6666 )
2017-05-03 18:19:34 +02:00
Rui Abreu Ferreira
685ca180f7
win: Terminal UI #6315
...
For CI builds unibilium is provided through msys2 packages, and
libtermkey is built from source in third-party from equalsraf/libtermkey.
In Windows we cannot read terminal input from the stdin file descriptor,
instead use libuv's uv_tty API. It should handle key input and encoding.
The UI suspend is not implemented for Windows, because the
SIGSTP/SIGCONT do not exist in windows. Currently this is a NOOP.
Closes #3902
Closes #6640
2017-05-03 12:48:24 +02:00
James McCoy
de50c003d5
Use vim_strchr(s, c) when c may be NUL ( #6656 )
...
As part of the refactoring in #5119 , some vim_strchr() were changed to
strchr(). However, vim_strchr() behaves differently than strchr() when
c is NUL, returning NULL instead of a pointer to the NUL.
Revert the strchr() calls where it isn't known whether c is NUL, since
this causes a semantic change the surrounding code doesn't expect. In
the case of #6650 , this led to a heap overrun.
Closes #6650
2017-05-03 10:12:38 +02:00
Justin M. Keyes
1483800cdf
coverity/161682: FP: Dereference after null check ( #6630 )
2017-05-01 17:04:56 +02:00
Justin M. Keyes
fa1ee0ac73
doc: bracketed-paste-mode
2017-05-01 14:55:26 +02:00
James McCoy
5d73a6e5df
Merge pull request #6621 from jamessan/vim-7.4.2231
...
vim-patch:7.4.2231,7.4.2239,7.4.2244,7.4.2245,7.4.2246,7.4.2263,8.0.0150
2017-04-30 09:46:41 -04:00
Justin M. Keyes
4afc93b926
Merge #6588 from justinmk/guicursor
2017-04-30 14:36:40 +02:00
Justin M. Keyes
c1d3bcc184
'guicursor': TMUX_WRAP iTerm seqs. Do color seq before shape seq.
2017-04-30 13:44:31 +02:00
Justin M. Keyes
d349f610ac
'guicursor': No color/blink by default
...
Closes #6577
2017-04-30 13:44:31 +02:00