Jan Edmund Lazo
a48896c6e7
vim-patch:8.1.1540: cannot build without +eval #10729
...
Problem: Cannot build without the +eval feature.
Solution: Define ex_const if needed.
0abb4273f6
2019-08-09 10:28:15 +02:00
Justin M. Keyes
4bb728dfa0
test: Minimize shada/helpers.lua #10728
2019-08-09 10:23:57 +02:00
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
25fff17d19
Merge pull request #10688 from bfredl/utf16lib
...
lua: minimal UTF-16 support needed for LSP
2019-08-09 00:00:55 +02: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
e4bd31dbac
tests: use module pattern with test/functional/helpers.lua ( #10724 )
2019-08-08 16:03:25 +02:00
Daniel Hahler
0288ba6e38
build: Makefile: use _opt_pylint [ci skip] ( #10720 )
...
A separate rule it clearer, and allows for `make --keep-going lint` in
general later.
Ref: https://github.com/neovim/neovim/pull/10714
2019-08-08 16:02:59 +02:00
Daniel Hahler
38a3af5dff
tests: output_spec: use shell-test REP_NODELAY ( #10726 )
...
Fix flaky "shell command :! throttles shell-command output greater than ~10KB:":
[ RUN ] shell command :! throttles shell-command output greater than ~10KB:
warning: Screen changes were received after the expected state. This indicates
indeterminism in the test. Try adding screen:expect(...) (or wait()) between
asynchronous (feed(), nvim_input()) and synchronous API calls.
- Use screen:redraw_debug() to investigate; it may find relevant intermediate
states that should be added to the test to make it more robust.
- If the purpose of the test is to assert state after some user input sent
with feed(), adding screen:expect() before the feed() will help to ensure
the input is sent when Nvim is in a predictable state. This is preferable
to wait(), for being closer to real user interaction.
- wait() can trigger redraws and consequently generate more indeterminism.
Try removing wait().
ERR
test/functional/ui/screen.lua:579: Failed to match any screen lines.
Expected (anywhere): "
%."
Actual:
|XXXXXXXXXX 591 |
|XXXXXXXXXX 592 |
|XXXXXXXXXX 593 |
|XXXXXXXXXX 594 |
| |
| |
|{3:-- TERMINAL --} |
stack traceback:
test/functional/ui/screen.lua:579: in function '_wait'
test/functional/ui/screen.lua:367: in function 'expect'
test/functional/ui/output_spec.lua:63: in function <test/functional/ui/output_spec.lua:53>
Log: https://travis-ci.org/neovim/neovim/jobs/569082705#L5355
(gcc-functionaltest-lua)
2019-08-08 16:02:28 +02:00
erw7
2e01e7ce8a
build/MSVC: Fix HAVE_ICONV_H #10697
...
Problem: HAVE_ICONV_H is not true in MSVC
Solution: Since iconv.h does not exist in the standard include directory
in MSVC, CMAKE_REQUIRED_INCLUDES must be set.
Note: This will be unnecessary after #10708 .
2019-08-08 12:06:02 +02:00
Daniel Hahler
1896c72a54
build: port FindLibVterm to LibFindMacros ( #10395 )
2019-08-08 06:39:18 +02:00
Daniel Hahler
6ebe476675
build: clean up / remove X_USE_STATIC ( #10713 )
...
This was discouraged (as an option) in 5b5d353151
[1], not enabled/used by
default, and not working according to the comment in local.mk.example.
Taken out of https://github.com/neovim/neovim/pull/10395 .
1: https://github.com/neovim/neovim/pull/2465
2019-08-07 22:19:55 +02:00
Daniel Hahler
0167c2e0c9
ci: AppVeyor: fix upload of coverage for oldtest ( #10721 )
...
This was not working due to having another `python` in the PATH then.
Ref: https://ci.appveyor.com/project/neovim/neovim/builds/26492761/job/dspm40v5l2v6gn40?fullLog=true#L15955
2019-08-07 22:09:18 +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
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