Daniel Hahler
0e3b9ea74d
includes
2019-08-07 14:21:23 +02:00
Daniel Hahler
aa6aa732e9
move ins_char
2019-08-07 14:21:23 +02:00
Daniel Hahler
dfe8cab0c1
lint
2019-08-07 14:21:23 +02:00
Daniel Hahler
f7fac33a1f
move del_lines
2019-08-07 14:21:23 +02:00
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
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
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
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
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
Björn Linse
e6d77993d1
lua: do not crash on syntax error in debug.debug()
2019-08-05 13:19:44 +02:00
Björn Linse
d3a7bdefb0
lua: immediate-callback safe print()
2019-08-05 13:19:44 +02:00
Jan Edmund Lazo
6871445dfe
vim-patch:8.1.1383: warning for size_t/int mixup ( #10694 )
...
Problem: Warning for size_t/int mixup.
Solution: Change type. (Mike Williams)
d33a764123
2019-08-05 03:35:46 +02:00
Justin M. Keyes
45c34bd84a
:doautocmd : Never show "No matching autocommands" #10689
...
The message is useless, it doesn't even mention the event name.
vim_dev discussion:
https://groups.google.com/forum/#!msg/vim_dev/RTbq58TMq9w/Xr4rSoUTCgAJ
ref: https://github.com/vim/vim/issues/4300
2019-08-05 03:33:45 +02:00
Jan Edmund Lazo
01ddb39699
vim-patch:8.1.1311: test: abort autocmd with exception #10692
...
Problem: Aborting an autocmd with an exception is not tested.
Solution: Add a test. Also shows how to abort a command by throwing an
exception.
23b5139234
2019-08-05 01:54:17 +02:00
Jan Edmund Lazo
a724209b5a
vim-patch:8.1.1251: test completion of mapping keys #10691
...
Problem: No test for completion of mapping keys.
Solution: Add a test. Also clean up the code.
2cb9f02532
2019-08-05 01:12:35 +02:00
Justin M. Keyes
2141dc2262
provider: check #Call() if g:loaded_xx_provider=2
2019-08-04 13:23:46 +02:00
Justin M. Keyes
5e6a08f2e6
provider: skip non-provider has() feature-names
...
We don't want to retry autoload sourcing (slow) for every random has()
query that finds it way to eval_call_provider().
2019-08-04 13:23:46 +02:00