ZyX
37a77506b0
eval: Silence V614: potentially uninitialized variable
...
Could not be uninitialized because `func_or_func_caller_profiling` is true only
if `do_profiling` is `YES`, and if `do_profiling` is `YES` then
`script_prof_save()` was called to initialize the variable.
2017-05-20 03:54:07 +03:00
ZyX
d9239181af
eval: Fix V507
2017-05-20 03:51:19 +03:00
ZyX
98baea63ff
eval: Silence V782
2017-05-20 03:49:36 +03:00
ZyX
1db29cb5e5
eval/encode: Silence V595 error
2017-05-20 03:47:01 +03:00
ZyX
a914029278
buffer: Silence V519
2017-05-20 03:28:44 +03:00
ZyX
956ef785f5
edit: Silence V595
2017-05-20 03:28:27 +03:00
ZyX
df67785886
*: Fix all V641 errors
2017-05-20 03:25:22 +03:00
ZyX
2411b6f137
charset: Fix V695: dead branches
...
Based on comments it appears that some non-printable characters intended to be
shown as `|x` (0xA0..0xFE) and some as `~x` (0x80..0x9F, 0xFF, excluding
previous). But this never happens because this is being catched by condition `c
>= 0x80` above which makes them be represented as `<A0>`. Since I find this
variant more useful and it additionally is backwards compatible (Vim does the
same thing) I just dropped dead branches.
2017-05-20 03:21:18 +03:00
Justin M. Keyes
060ce0e0bc
startup: init v:progpath before calling vim_getenv ( #6755 )
2017-05-17 03:23:34 +02:00
James McCoy
4a08320007
oldtests: Mark test_timer's Test_oneshot as flaky
2017-05-16 15:32:19 -04:00
Justin M. Keyes
597d65b4b7
Merge #6741 from justinmk/progpath
2017-05-15 16:11:01 +02:00
Justin M. Keyes
cc5a42a774
env_iter: Learn delim parameter.
2017-05-15 15:01:52 +02:00
Justin M. Keyes
5bda5c5bf2
vim_getenv: Use v:progpath instead of os_exepath.
2017-05-15 15:01:52 +02:00
Justin M. Keyes
4c5398bc40
startup: v:progpath fallback: path_guess_exepath
...
If procfs is missing then libuv cannot find the exe path.
Fallback to path_guess_exepath(), adapted from Vim findYourself().
Closes #6734
2017-05-15 15:01:52 +02:00
Justin M. Keyes
8e052f677e
Merge #6737 "options: make 'highlight' read-only"
2017-05-15 14:53:31 +02:00
Björn Linse
8d8b6224d9
options: make 'highlight' read-only
2017-05-15 07:22:31 +02:00
Justin M. Keyes
17531ed082
Merge #6480 from ZyX-I/colored-cmdline'/input-dict
2017-05-13 21:17:33 +02:00
Florian Walch
7383274f66
cmake: Support building without LuaJIT. #6736
...
Compile `nvim` executable against Lua if PREFER_LUA=ON.
As the testing library `nvim-test` requires LuaJIT, it is
still compiled against LuaJIT. If LuaJIT is not available,
`nvim-test` is not built.
2017-05-13 16:59:06 +02:00
ZyX
d66ef56739
eval/typval: Fix numbuf parameter documentation
2017-05-13 17:01:22 +03:00
Björn Linse
244a1f97db
Merge pull request #6704 from bfredl/luaexec
...
execute lua directly from the remote API
2017-05-13 15:06:41 +02:00
Björn Linse
f424189093
api: execute lua directly from the remote api
2017-05-13 15:03:42 +02:00
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