Daniel Hahler
480794146f
f_spellbadword: set len=0 for non-found word
...
`len` is used with `list_append_string` later, and should reflect the
length of `word` (i.e. 0 when not setting word / breaking above).
Ref: neovim/neovim#9782 (comment)
2019-08-08 21:40:29 -04:00
Jan Edmund Lazo
d1ce15f696
vim-patch:8.1.0200: spellbadword() not tested
...
Problem: spellbadword() not tested.
Solution: Add a test. (Dominique Pelle, closes vim/vim#3235 )
872e451e8c
2019-08-08 21:31:20 -04:00
Jan Edmund Lazo
18888c15fc
vim-patch:8.1.0199: spellbadword() does not check for caps error
...
Problem: spellbadword() does not check for caps error. (Dominique Pelle)
Solution: Adjust capcol when advancing.
66ab916935
2019-08-08 21:31:20 -04:00
Björn Linse
1f54f68732
lua: minimal UTF-16 support needed for LSP
2019-08-08 20:10:14 +02:00
Jan Edmund Lazo
ce628e1187
vim-patch:8.1.1824: crash when correctly spelled word is very long ( #10725 )
...
Problem: Crash when correctly spelled word is very long. (Ben Kraft)
Solution: Check word length before copying. (closes vim/vim#4778 )
5bcc5a1ff9
2019-08-08 17:23:25 +02:00
Daniel Hahler
564838159e
lint
2019-08-07 14:21:23 +02:00
Daniel Hahler
e269c1028b
remove !has_mbyte branches
...
Ref: https://github.com/neovim/neovim/pull/10171#discussion_r292437832
2019-08-07 14:21:23 +02:00
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