Daniel Hahler
41fa6079b2
lint/sync: truncate_line
2019-08-07 14:21:23 +02:00
Daniel Hahler
be08d52e11
move truncate_line
2019-08-07 14:21:23 +02:00
Daniel Hahler
33e6cffb9b
lint/sync: open_line
2019-08-07 14:21:23 +02:00
Daniel Hahler
2f225886b0
move open_line
2019-08-07 14:21:23 +02:00
Daniel Hahler
b706b1f049
move copy_indent (from nvim's indent.c)
2019-08-07 14:21:23 +02:00
Daniel Hahler
e454dce5e4
move del_bytes
2019-08-07 14:21:23 +02:00
Daniel Hahler
0b3ee2e8ac
move del_char, del_chars
2019-08-07 14:21:23 +02:00
Daniel Hahler
75598927f2
move ins_str
2019-08-07 14:21:23 +02:00
Daniel Hahler
c0f71ef826
move ins_char_bytes
2019-08-07 14:21:23 +02:00
Daniel Hahler
664b6adebe
move ins_bytes, ins_bytes_len
2019-08-07 14:21:23 +02:00
Daniel Hahler
1117592f64
move unchanged
2019-08-07 14:21:23 +02:00
Daniel Hahler
f717deea06
move changed_lines
2019-08-07 14:21:23 +02:00
Daniel Hahler
b353d8599b
move deleted_lines, deleted_lines_mark, changed_lines_buf
2019-08-07 14:21:23 +02:00
Daniel Hahler
83d35e62f2
move appended_lines_mark
2019-08-07 14:21:23 +02:00
Daniel Hahler
d9f2d53239
move appended_lines
2019-08-07 14:21:23 +02:00
Daniel Hahler
c2cd9178ca
remove inserted_bytes (comes via text properties, v8.1.0678)
2019-08-07 14:21:23 +02:00
Daniel Hahler
ac6671946a
move changedOneline, changed_bytes
2019-08-07 14:21:23 +02:00
Daniel Hahler
53210c16d1
move changed_common
2019-08-07 14:21:23 +02:00
Daniel Hahler
0e5314f56e
move changed_int/changed_internal
2019-08-07 14:21:23 +02:00
Daniel Hahler
a822b3e547
move changed
2019-08-07 14:21:23 +02:00
Daniel Hahler
2a421e52e4
move change_warning
2019-08-07 14:21:23 +02:00
Daniel Hahler
e8cd2bcf37
header
2019-08-07 14:21:23 +02:00
Daniel Hahler
4a8a87c3a9
orig src/nvim/change.c
2019-08-07 14:21:23 +02:00
Daniel Hahler
e4395e8e47
vim-patch:3f86ca0faa29cb862f876a97f87790f3a46a3858
...
Add missing files from patch 8.1.1318
3f86ca0faa
2019-08-07 14:21:23 +02:00
Daniel Hahler
3a0505f83e
vim-patch:8.1.1318: code for text changes is in a "misc" file
...
Problem: Code for text changes is in a "misc" file.
Solution: Move the code to change.c.
ec28d1516e
2019-08-07 14:21:23 +02:00
Daniel Hahler
1d6e368159
Fix lualint: remove unused var
2019-08-07 14:20:23 +02:00
Ihor Antonov
935ae63a48
cmakelists: fixed tests to avoid clang warnings ( #10705 )
...
* clang/"dead assignment"
* clang/"Uninitialized argument value"
2019-08-07 12:49:33 +02:00
Daniel Hahler
4f148edd75
tests: more cleanup of plugin/shada_spec
...
Ref: https://github.com/neovim/neovim/pull/10701/commits/330a6713#r311005754
Closes https://github.com/neovim/neovim/pull/10710 .
2019-08-07 12:47:21 +02:00
Daniel Hahler
95e1ce24e8
build: lint: fix exit with optional pylint
...
Ref: https://github.com/neovim/neovim/pull/10714#issuecomment-518932355
2019-08-07 12:27:59 +02:00
Björn Linse
d75fc87dec
Merge pull request #10703 from ngortheone/clang_dead2
...
clang/"dead assignment": suppessed getchar.c
Possibly invalid, read on line 1972:
if (keylen >= 0 && keylen <= typebuf.tb_len) {
2019-08-07 10:27:07 +02:00
Björn Linse
6fb0020df4
Merge pull request #10513 from bfredl/bytecount
...
api/lua: add {byte_count} parameter to line region change event
2019-08-06 20:25:46 +02:00
Björn Linse
c0993ed343
lua: support getting UTF-32 and UTF-16 sizes of replaced text
2019-08-06 20:24:36 +02:00
Daniel Hahler
dc1359bf8e
Fix list_features to include space after first feature ( #10711 )
...
Regressed in e134cc9d4a
: the use of list_in_columns was not adding a
space after the first features, because we do not start on a new line:
> Features: -acl+iconv +tui
This moves all the related code to `list_features`, and just joins them
with spaces.
2019-08-06 18:55:14 +02:00
Daniel Hahler
8218d474fa
build: move pylint to Makefile, optional with "make lint" ( #10714 )
...
This avoids errors when using "make lint", but "flake8" is not
available. We do not want to install it then via third-party.
On CI "make pylint" is used explicitly.
2019-08-06 18:53:51 +02:00
Daniel Hahler
e85b4e749e
tests: unit.helpers: provide string with write errors ( #10715 )
...
This might help to have more information in case of errors, like
mentioned in https://github.com/neovim/neovim/commit/eec529cf9e .
2019-08-06 17:42:32 +02:00
Björn Linse
b0e26199ec
lua: add {old_byte_size} to on_lines buffer change event
2019-08-06 17:01:47 +02:00
erw7
d6f15ccc3c
remove DYNAMIC_ICONV
2019-08-06 12:44:22 +09:00
Jan Edmund Lazo
11a6dac8c9
vim-patch:8.1.1467: cscope test fails
...
Problem: Cscope test fails.
Solution: Update expected text.
d6ec1730ba
2019-08-05 22:41:51 -04:00
Jan Edmund Lazo
ce7bcdec23
vim-patch:8.1.1465: allocating wrong amount of memory
...
Problem: Allocating wrong amount of memory. (Yegappan Lakshmanan)
Solution: Use sizeof() for right type of struct.
a37833dbd7
2019-08-05 22:40:48 -04:00
Justin M. Keyes
067a39ba85
Merge #10701 from justinmk/test-fixes
...
test: Eliminate plugin/helpers.lua
2019-08-06 01:36:01 +02:00
Justin M. Keyes
a29358dc58
Merge #10655 'environ(), getenv(), setenv()'
...
close #10655
2019-08-06 01:23:49 +02:00
Daniel Hahler
d55b12ea50
f_environ: cleanup/refactor
...
- use os_getenvname_at_index / os_getenv
- f_getenv: empty (*p == NUL) is not null (undefined)
2019-08-06 01:23:11 +02:00
Daniel Hahler
fd66ad2262
vim-patch:8.1.1305: there is no easy way to manipulate environment variables
...
Problem: There is no easy way to manipulate environment variables.
Solution: Add environ(), getenv() and setenv(). (Yasuhiro Matsumoto,
closes vim/vim#2875 )
691ddeefb5
2019-08-06 01:17:32 +02:00
Ihor Antonov
b09e03c64d
clang/"dead assignment": screen.c #10702
...
Suppress the warning.
mb_c and mb_l describe a char together, they are not independent variables. The
coupled assignments are good practice to avoid future confusion, even if the
current code doesn't use an assigned value.
2019-08-06 00:53:54 +02:00
Ihor Antonov
512f24f71d
clang/"dead assignment": suppessed
...
To ensure consistency and avoid possible errors in the code
the assigment is considered to be legit.
2019-08-05 18:40:31 -04:00
Justin M. Keyes
f6c9412436
test/mbyte_spec: skip broken test on QuickBuild
...
Forgot `return` in eec529cf9e
.
2019-08-06 00:28:00 +02:00
Justin M. Keyes
330a6713bf
test: Eliminate plugin/helpers.lua
2019-08-05 23:55:57 +02:00
Jan Edmund Lazo
7086751c5e
vim-patch:8.1.1439: ga_grow(): 1.5x growth rate #10699
...
Problem: Json_encode() is very slow for large results.
Solution: In the growarray use a growth of at least 50%. (Ken Takata,
closes vim/vim#4461 )
c47ed44be7
2019-08-05 23:42:41 +02:00
Björn Linse
f5d1e0e7b1
Merge pull request #10690 from bfredl/lua_print
...
lua: laundry list (crashes and additions)
2019-08-05 13:59:40 +02:00
Björn Linse
88938634e7
lua: add vim.in_fast_event() to check if we are in a luv callback
2019-08-05 13:57:24 +02:00