Björn Linse
5a0d0286ff
TUI: use BCE again more often, as it provides smoother resizes and scrolling
...
add exceptions for terminals we know doesn't support BCE
2018-08-14 12:34:35 +02:00
Björn Linse
5fad02c081
tui: reenable cursor movement optimizations (leftover from #8221 )
2018-08-14 12:34:35 +02:00
Björn Linse
e5bcf83380
tui: hack for invalid first line with non-bce resize
2018-08-14 12:34:35 +02:00
Björn Linse
6c5f9219ef
tui: use bce properly
2018-08-14 12:34:35 +02:00
Björn Linse
f767cee100
Merge pull request #8790 from bfredl/hlattr
...
pass highlight attrs per value and thread-safely to TUI thread
2018-08-14 12:33:12 +02:00
ZviRackover
999d33faf4
lint: clean up after parent commit
2018-08-14 08:38:38 +03:00
Jan Edmund Lazo
538ace9aae
oldtests: win: a directory is not executable
...
Tests in 'test/functional/core/job_spec.lua' depend on this behavior.
2018-08-13 22:07:25 -04:00
Justin M. Keyes
bec5e4cb61
Merge #8832 from eraserhd/vim-insert-setline-undo-fixes
2018-08-14 02:17:05 +02:00
Jan Edmund Lazo
a1a5e35e9a
vim-patch:8.1.0262: not enough testing for getftype()
...
Problem: Not enough testing for getftype().
Solution: Add a test. (Dominique Pelle, closes vim/vim#3300 )
1598f9937a
2018-08-13 16:06:29 -04:00
Jan Edmund Lazo
163680a58e
vim-patch:8.0.1630: trimming white space is not that easy
...
Problem: Trimming white space is not that easy.
Solution: Add the trim() function. (Bukn, closes vim/vim#1280 )
295ac5ab5e
2018-08-13 12:04:36 -04:00
Jan Edmund Lazo
e346c01c31
vim-patch:8.1.0161: buffer not updated with 'autoread' set if file was deleted
...
Problem: Buffer not updated with 'autoread' set if file was deleted.
(Michael Naumann)
Solution: Don't set the timestamp to zero. (closes vim/vim#3165 )
386bc82a3f
Sleep 2 seconds for autoread (https://github.com/neovim/neovim/pull/7592 ).
2018-08-13 11:33:04 -04:00
ZviRackover
7676fc7562
Remove occurrences of 'has_mbyte' near lines changes by parent commit
2018-08-13 18:07:40 +03:00
ZviRackover
7046258a38
Remove all occurrences of mb_off2cells
2018-08-13 18:07:40 +03:00
Björn Linse
fa4c260100
cursor_shape: use attribute ids instead of syntax ids
...
As attribute ids is the convention in the UI protocol
Also remove non-threadsafe calls in tui.c to syntax module.
2018-08-13 13:35:35 +02:00
Björn Linse
fab555e59c
highlight: HlAttrs is a value type; treat it like such
2018-08-13 13:35:35 +02:00
Jan Edmund Lazo
a4c957bab7
lint
2018-08-12 18:21:58 -04:00
Jan Edmund Lazo
cfb2383c26
vim-patch:8.0.1397: pattern with \& following nothing gives an error
...
Problem: Pattern with \& following nothing gives an error.
Solution: Emit an empty node when needed.
890dd05492
2018-08-12 18:09:43 -04:00
Jan Edmund Lazo
3fd2efdb26
vim-patch:8.0.1257: no test for fix of undefined behavior
...
Problem: No test for fix of undefined behavior.
Solution: Add a test. (closes vim/vim#2255 )
2973daafe1
2018-08-12 18:03:30 -04:00
Jan Edmund Lazo
0b38011328
vim-patch:8.0.1243: no test for what 8.0.1227 fixes
...
Problem: No test for what 8.0.1227 fixes.
Solution: Add a test that triggers the problem. (Christian Brabandt)
f45938cc20
2018-08-12 17:57:04 -04:00
Jan Edmund Lazo
7faf682525
vim-patch:8.0.1227: undefined left shift in readfile()
...
Problem: Undefined left shift in readfile(). (Brian 'geeknik' Carpenter)
Solution: Add cast to unsigned. (Dominique Pelle, closes vim/vim#2253 )
dc1c981294
2018-08-12 17:56:23 -04:00
Justin M. Keyes
97331cab67
Merge #8843 from janlazo/vim-8.0.0828
2018-08-12 19:35:20 +02:00
Justin M. Keyes
addd181369
Merge #8837 from janlazo/vim-8.0.1290
2018-08-12 14:54:18 +02:00
Justin M. Keyes
1211fa09cf
Merge #8833 from janlazo/vim-8.0.1004
2018-08-12 14:11:47 +02:00
Jan Edmund Lazo
8ad46a25cb
eval: match in find_some_match() is bool
2018-08-11 19:30:08 -04:00
Jan Edmund Lazo
3d77ca39c7
lint
2018-08-11 18:57:54 -04:00
Jan Edmund Lazo
d6a25f89b8
regexp: drop has_mbyte check in regmatch()
...
has_mbyte is always true in nvim.
2018-08-11 17:45:18 -04:00
Jan Edmund Lazo
594536a1e7
vim-patch:8.0.1361: some users don't want to diff with hidden buffers
...
Problem: Some users don't want to diff with hidden buffers.
Solution: Add the "hiddenoff" item to 'diffopt'. (Alisue, closes vim/vim#2394 )
97ce419201
2018-08-11 15:06:07 -04:00
Jan Edmund Lazo
90128843f6
diff: drop enc_utf8 check in diff_equal_char()
...
enc_utf8 is always true for nvim.
2018-08-11 14:54:48 -04:00
Jan Edmund Lazo
fd334ec2a8
vim-patch:8.0.1046: code duplication in diff mode
...
Problem: Code duplication in diff mode.
Solution: Use diff_equal_char() also in diff_cmp(). (Rick Howe)
ae96b8d058
2018-08-11 14:54:39 -04:00
Jan Edmund Lazo
4f93d05d39
vim-patch:8.0.1037: "icase" of 'diffopt' is not used for highlighting
...
Problem: "icase" of 'diffopt' is not used for highlighting differences.
Solution: Also use "icase". (Rick Howe)
da22b8cc8b
2018-08-11 14:54:39 -04:00
Jan Edmund Lazo
d624aea454
lint
2018-08-11 14:37:17 -04:00
Jan Edmund Lazo
5f4a231e3f
vim-patch:8.1.0099: exclamation mark in error message not needed
...
Problem: Exclamation mark in error message not needed.
Solution: Remove the exclamation mark.
3c867daaf0
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
9c4f6307b7
vim-patch:8.1.0097: superfluous space before exclamation mark
...
Problem: Superfluous space before exclamation mark.
Solution: Remove the space. Don't translate debug message.
5efa0102de
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
96dc8c0d28
vim-patch:8.1.0090: "..." used inconsistently in a message
...
Problem: "..." used inconsistently in a message.
Solution: Define the message with " ..." once. (hint by Ken Takata)
9b0c5c23bd
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
b3ad509905
vim-patch:8.1.0078: "..." used inconsistently in messages
...
Problem: "..." used inconsistently in messages.
Solution: Drop the space before " ...".
c166927a32
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
cb708d203b
vim-patch:8.0.1517: invalid memory acces with pattern using look-behind match
...
Problem: Invalid memory acces with pattern using look-behind match.
(Dominique Pelle)
Solution: Get a pointer to the right line.
bc197195b0
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
5ed303c22b
vim-patch:8.0.1470: integer overflow when using regexp pattern
...
Problem: Integer overflow when using regexp pattern. (geeknik)
Solution: Use a long instead of int. (Christian Brabandt, closes vim/vim#2251 )
2c7b906afb
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
f7f65f5a82
vim-patch:8.0.1254: undefined left shift in gethexchrs()
...
Problem: Undefined left shift in gethexchrs(). (geeknik)
Solution: Use unsigned long. (idea by Christian Brabandt, closes vim/vim#2255 )
4c22a91d20
2018-08-11 14:32:59 -04:00
Jan Edmund Lazo
dd6c1a0a8f
vim-patch:8.0.0828: Coverity: may dereference NULL pointer
...
Problem: Coverity: may dereference NULL pointer.
Solution: Bail out if calloc_state() returns NULL.
983b3a5bc4
2018-08-11 14:32:59 -04:00
ZviRackover
22311457ab
refactor: Replace vim_strrchr() with strrchar() ( #8718 )
...
ref #1474
2018-08-11 16:14:10 +02:00
Jan Edmund Lazo
6aefae8c4e
terminfo: add header guard, stdint.h for int8_t ( #8848 )
...
Lint fixes for single-include test.
2018-08-11 16:06:57 +02:00
Jan Edmund Lazo
5ee9161f81
lint
2018-08-10 12:54:18 -04:00
Jan Edmund Lazo
efbf70600c
vim-patch:8.0.1490: number of spell regions is spread out through the code
...
Problem: Number of spell regions is spread out through the code.
Solution: Define MAXREGIONS.
2993ac5fce
2018-08-10 12:35:38 -04:00
Marco Hinz
092f1a3e2c
terminfo: update built-in terminfo entries
...
The arrays are put in their own file: terminfo_defs.h. This makes it simple to
update all terminfo entries in one go using scripts/update_terminfo.sh.
The entries were compiled with tic 6.1 and some use the extended number format.
2018-08-10 14:58:23 +02:00
Marco Hinz
ceeca24205
terminfo: add scripts/update_terminfo.sh
...
This script updates the built-in terminfo entries.
[skip ci]
2018-08-10 14:58:23 +02:00
Jan Edmund Lazo
09c2184660
oldtests: Test_undofile() passes
...
Set undodir to Vim's default value.
Fix pathsep of expected undofile path for Windows.
Comment out invalid test case for Neovim.
2018-08-09 19:53:05 -04:00
Jason Felice
c6dd84e00b
Fix lint
2018-08-09 16:46:50 -07:00
Jason Felice
3c41df2691
vim-patch:8.1.0256: using setline() in TextChangedI splits undo
...
Problem: Using setline() in TextChangedI splits undo.
Solution: Use another solution for undo not working properly.
9fa9506853
This deviates from Vim in the handling of the CursorHoldI event. In
Vim, any buffer changes are merged into the insert. In Neovim,
CursorHoldI is handled via the multiqueue, and the point at which
the cursor hold is implemented (in input.c) doesn't know enough about it.
Making all queued events merge into the insert seems more wronger since
changes by other asynchronous events really should be separately
undoable.
2018-08-09 16:46:50 -07:00
Jason Felice
d45efa5793
vim-patch:8.1.0245: calling setline() in TextChangedI autocmd breaks undo
...
Problem: Calling setline() in TextChangedI autocmd breaks undo. (Jason
Felice)
Solution: Don't save lines for undo when already saved. (closes vim/vim#3291 )
91d2e783b4
2018-08-09 16:46:11 -07:00
Jason Felice
0a8be9f8ef
vim-patch:8.1.0057: popup menu displayed wrong when using autocmd
...
Problem: Popup menu displayed wrong when using autocmd.
Solution: Use aucmd_prepbuf(). Force updating status line if the popup menu
is going to be redrawn anyway. (Christian Brabandt, closes vim/vim#3009 )
6ba3ec1bac
2018-08-09 16:46:01 -07:00