Justin M. Keyes
78c5201234
'cpoptions': remove "k" flag
...
This was already removed in 3baba1e7bc
, except the documentation and
CPO_VI entry. find_term_bykeys() is irrelevant to Nvim.
2017-07-08 16:34:33 +02:00
Peter Renström
6720fe253e
runtime: K: prefer Vim help instead of man #3104
2017-07-08 15:11:56 +02:00
Justin M. Keyes
06f798cc38
doc: ISSUE_TEMPLATE.md
2017-07-08 14:59:06 +02:00
d10n
69e9cda5ac
i_CTRL-O: fix :startinsert at end of line ( #6963 )
...
The gchar_cursor() == NUL check is already done in ins_ctrl_o.
ins_esc changes gchar_cursor() so this if block is probably never
entered.
Issue:
Pressing CTRL-O in insert mode at the end of the line and typing
:startinsert moves the cursor 1 column back, when I expect the cursor
to remain at the end of the line
This is a regression from Vim behavior. Since at least Vim version 7.0,
Vim returns you to insert mode at the end of the line.
091e7d033c
is the first bad neovim commit
Steps to reproduce using `nvim -u NORC`:
`aaaa<C-o>:startinsert<CR>`
Fixes #6962
2017-07-08 12:50:58 +02:00
Ivan
17298a7912
runtime: update vimCommand syntax pattern ( #6976 )
...
Update a flawed match pattern for the vimCommand syntax group. To see
the effect of this fix, open a vimscript buffer,
nvim -u NONE foo.vim
configure a couple highlight groups,
:hi! vimIsCommand ctermfg=Green
:hi! vimCommand ctermfg=Red
:syntax enable
and add the following lines to the buffer:
let foo=xFoo
let bar=zBar
You'll notice the "z" in zBar is Red, while xFoo and the rest of Bar are green. This will
be the case as long as the word following `=` starts with the letter "z". This has already
been fixed upstream by adding a "\>" word boundary to the match pattern:
https://github.com/vim/vim/issues/124
e271909625 (diff-86da060e2153c8ce5dc317a7b4b5a29dR27)
This particular match pattern was also mentioned in issue #5491 , but in reference to a bug
that was related to the generated part of syntax/vim.vim, whereas this bug lives in the
non-generated part of the file.
2017-07-08 12:44:36 +02:00
James McCoy
226603a8d8
Merge pull request #6979 from jamessan/avoid-jemalloc-on-osx
...
Prefer the static jemalloc library by default on OSX
2017-07-07 15:46:39 -04:00
James McCoy
35fad15c89
Prefer the static jemalloc library by default on OSX
...
When neovim is dynamically linked against jemalloc on OSX, users are
hitting the deadlock described in jemalloc/jemalloc#895 .
2017-07-07 14:33:54 -04:00
James McCoy
773ea9dbdc
Merge pull request #6823 from blueyed/fix-term-stop
...
fix SIGTERM/SIGHUP for jobs
2017-07-07 10:29:49 -04:00
James McCoy
5f5f2ce0de
test: tui_spec: Remove unused is_linux variable
2017-07-07 10:07:53 -04:00
Daniel Hahler
f31c26f1af
jobstop/process_stop: send SIGTERM directly
...
This reverts the revert of #6644 (7c1a5d1d4
), and handles it properly
now (with tests).
2017-07-07 13:11:20 +02:00
Justin M. Keyes
105d680aea
Merge #6816 'TUI improvements'
...
Removed these commits (test-suite changes):
e2fba01910
7c809c4bc7
18e7cd9e97
2017-07-07 00:34:37 +02:00
Justin M. Keyes
1ae7744f42
lint
2017-07-07 00:33:57 +02:00
Jonathan de Boyne Pollard
852f21ed05
tui: Coding style changes only
...
Per warnings about house style from automated tools.
2017-07-06 10:17:13 +02:00
Jonathan de Boyne Pollard
5701165f06
tui: Switch terminal keyboard mode properly.
...
The terminfo doco explicitly states that it covers the case where the
terminal is in application cursor/keypad (i.e. "keypad transmit") mode,
and not where it is in normal cursor/keypad (i.e. "keypad local") mode.
Full screen applications like nvim must switch to and from keypad
transmit mode when expecting the control sequences given by terminfo.
2017-07-06 10:17:13 +02:00
Jonathan de Boyne Pollard
de8a9f6c33
tui: Coding style changes only
...
Per warnings about house style from automated tools.
2017-07-06 10:17:13 +02:00
James McCoy
c07e144c82
Merge pull request #6969 from jamessan/ttimeoutlen
...
options: Default to 'ttimeout' and 'ttimeoutlen=50'
2017-07-06 04:02:37 +00:00
Paul "LeoNerd" Evans
e4dc878f89
options: Default to 'ttimeout' and 'ttimeoutlen=50'
...
This gives libtermkey 50msec to reassemble split multibyte sequences
like DCSes.
2017-07-05 22:23:04 -04:00
Justin M. Keyes
69f0847ccc
Merge #6959 from ZyX-I/pvs-fixes
2017-07-04 23:50:57 +02:00
Justin M. Keyes
1b70a1da04
Merge #6958 from ZyX-I/fix-6957
2017-07-04 21:56:05 +02:00
ZyX
ce30998221
bufhl_defs: Silence V512: buffer underflow
2017-07-04 20:11:35 +03:00
ZyX
7109f63e3c
main: Flush file in place of closing it, also do error reporting
...
Apparently on travis OS X systems it crashes when cleaning up streams with
stdout closed:
(lldb) bt all
* thread #1 : tid = 0x0000, 0x00007fff8703df06 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGSTOP
* frame #0 : 0x00007fff8703df06 libsystem_kernel.dylib`__pthread_kill + 10
frame #1 : 0x00007fff93a764ec libsystem_pthread.dylib`pthread_kill + 90
frame #2 : 0x00007fff97c056df libsystem_c.dylib`abort + 129
frame #3 : 0x00007fff97bccdd8 libsystem_c.dylib`__assert_rtn + 321
frame #4 : 0x0000000107a4e106 nvim`uv__close(fd=<unavailable>) + 102 at core.c:521
frame #5 : 0x0000000107a5307d nvim`uv__loop_close(loop=0x00007fff5847c018) + 77 at loop.c:118
frame #6 : 0x0000000107a4d149 nvim`uv_loop_close(loop=0x00007fff5847c018) + 57 at uv-common.c:626
frame #7 : 0x000000010783e5bc nvim`stream_set_blocking(fd=0, blocking=true) + 204 at stream.c:34
frame #8 : 0x000000010795d66b nvim`mch_exit(r=0) + 91 at os_unix.c:147
frame #9 : 0x00000001078d5663 nvim`command_line_scan(parmp=0x00007fff5847c760) + 1779 at main.c:787
frame #10 : 0x00000001078d4393 nvim`main(argc=2, argv=0x00007fff5847c898) + 163 at main.c:249
frame #11 : 0x00007fff8cdd65ad libdyld.dylib`start + 1
frame #12 : 0x00007fff8cdd65ad libdyld.dylib`start + 1
2017-07-04 19:58:02 +03:00
Nikolai Aleksandrovich Pavlov
957a6506ef
Merge pull request #6961 from ZyX-I/pvscheck-cc
...
pvscheck: Add --environment-cc switch
2017-07-04 19:27:12 +03:00
ZyX
aa3e3b4ca6
pvscheck: Add --environment-cc switch
...
To be used to make bot-ci able to use clang-4.0 without hacks.
[ci skip]
2017-07-04 19:25:05 +03:00
ZyX
28f6bd822b
terminal: Silence -V666 error: value not correspond with string length
...
Looks like calling this function below with 4-character first strings
made PVS think that OPT_LOCAL (it is equal to 4) is a string length.
2017-07-04 18:37:02 +03:00
ZyX
af1f17f1dc
syntax: Fix V763: parameter always rewritten before being used
...
This is the result of malloc error handling elimination: push_current_state()
used to (not) return OK depending on whether growing garray failed or not and
this return was checked, if errorred out push_next_match() will simply return
its argument unchanged.
Now when allocations are supposed to either always succeed or crash Neovim this
check was returned, push_current_state() was stripped of its return value and
moved out of if() condition, resulting in V763.
2017-07-04 18:37:02 +03:00
ZyX
aaab5e3900
spell: Silence V512: buffer underflow
2017-07-04 18:37:02 +03:00
ZyX
4cb6317900
spell: Fix V728: excessive check
2017-07-04 18:37:02 +03:00
ZyX
f81d1ce003
regexp: Silence V595: potential null dereference
...
The code uses 2-iteration loop antipattern: retval is NULL on first iteration,
not NULL on second, yet this is still a false positive.
2017-07-04 18:37:01 +03:00
ZyX
6552768c4f
normal: Fix V728: excessive check
2017-07-04 18:37:01 +03:00
ZyX
605c8fb49c
main: Use msgpack_file_write in place of “fbuffer”
...
Apparently the latter is not a part of the public C API.
2017-07-04 18:37:01 +03:00
ZyX
f0b3029ad3
os: Add OS_STD*_FILENO constants
2017-07-04 18:37:01 +03:00
ZyX
72b3fd9664
os/fileio: Add ability to use os/fileio.c for file descriptors
...
Code imported from #6299
2017-07-04 18:37:01 +03:00
ZyX
5ab9e9f617
os/fileio: Add msgpack_file_write function
2017-07-04 18:37:01 +03:00
ZyX
94bd0f9915
main: Fix V522: potential NULL dereference
...
It is useless to use sbuffer here and print that to stdout, just using “fbuffer”
instead.
2017-07-04 18:37:01 +03:00
ZyX
63f72ac27c
shada: Fix linter error
2017-07-04 17:47:45 +03:00
ZyX
1f05ec95c0
ex_getln: Silent V519: value is assigned twice successively
...
This is usual “passing data via global” false positive.
2017-07-04 16:24:48 +03:00
ZyX
c930f32ab9
socket: Silence V641: buf size is not multiple of what it is cast to
2017-07-04 16:22:18 +03:00
Justin M. Keyes
5214798cfc
Merge #6955 'Fix invalid :echo output'
2017-07-04 15:18:18 +02:00
ZyX
2e89aaf3bd
charset: Fix V728: excessive check
2017-07-04 16:08:52 +03:00
ZyX
91b9ad7d82
shada: Make sure that code does not attempt to read too long items
...
Fixes #6957
2017-07-04 15:41:59 +03:00
ZyX
2208b64891
functests: Ensure different SIDs on successive source() calls
2017-07-04 15:15:23 +03:00
ZyX
480598dcda
functests: Add some more :echo tests which also check for regression
...
Fixes #6954
2017-07-04 02:38:40 +03:00
ZyX
d113d3d737
functests: Make ex_cmds/echo actually use :echo
2017-07-04 02:22:26 +03:00
ZyX
e07e46f539
message: Fix :echo "\x80"
printing ~@<80>
2017-07-04 02:06:40 +03:00
ZyX
b199194a2c
functests: Copy eval/string_spec.lua to ex_cmds/echo_spec.lua
2017-07-04 02:06:04 +03:00
Justin M. Keyes
008b604bac
Merge #6947 from ZyX-I/consistent-get_keymap
2017-07-03 23:33:08 +02:00
Matthieu Coudron
e333957a1a
dict_get_value(): name the missing key ( #6952 )
2017-07-03 23:03:30 +02:00
James McCoy
82907ab5fe
Merge pull request #6946 from jamessan/fix-expand_env_esc-test
...
test: expand_env_esc: Pass correct buffer size for outlen and assertion
2017-07-02 18:52:26 +00:00
ZyX
35898cff5d
unittests: Fix allocation ordering for tv_dict_add_str()
2017-07-02 20:24:39 +03:00
ZyX
d5916a823a
functests: Test how spaces appear in get_keymap output
2017-07-02 20:08:00 +03:00