James McCoy
68411dc189
vim-patch.sh: Fix replacement which converts #1234 to vim/vim#1234
...
Noticed in cb7bdf5f
, where the script incorrectly converted `#ifdef` to
`vim/vim#ifdef`.
[skip ci]
2018-08-09 20:10:41 -04: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
Justin M. Keyes
cf9dd7a3f4
Merge #8835 from janlazo/vim-8.0.1819
2018-08-10 00:01:32 +02:00
Jan Edmund Lazo
1c1722105c
vim-patch:8.1.0025: no test for the undofile() function
...
Problem: No test for the undofile() function.
Solution: Add test. (Dominique Pelle, closes vim/vim#2958 )
e5fa11186f
2018-08-09 16:06:00 -04:00
Jan Edmund Lazo
6853690c78
vim-patch:8.0.1433: illegal memory access after undo
...
Problem: Illegal memory access after undo. (Dominique Pelle)
Solution: Avoid the column becomes negative. (Christian Brabandt,
closes vim/vim#2533 )
95dbcbea6d
2018-08-09 15:32:13 -04:00
Jan Edmund Lazo
fc8965787b
memline: fnamecmp_ino() returns bool
2018-08-09 14:19:26 -04:00
Jan Edmund Lazo
e36fce75fb
vim-patch:8.0.1819: swap file warning for file with non-existing directory
...
Problem: Swap file warning for a file in a non-existing directory, if there
is another with the same file name. (Juergen Weigert)
Solution: When expanding the file name fails compare the file names.
8c3169c58e
2018-08-09 14:12:57 -04:00
Jan Edmund Lazo
4e963f2462
vim-patch:8.0.1290: seq_cur of undotree() wrong after undo
...
Problem: seq_cur of undotree() wrong after undo.
Solution: Get the actual sequence number instead of decrementing the current
one. (Ozaki Kiichi, closes vim/vim#2319 )
80eaddd3a0
2018-08-09 13:30:42 -04:00
Jan Edmund Lazo
cb7bdf5f92
vim-patch:8.1.0024: test % command ( #8834 )
...
Problem: % command not testded on vim/vim#ifdef and comment.
Solution: Add tests. (Dominique Pelle, closes vim/vim#2956 )
6b69e5c646
2018-08-09 18:41:36 +02:00
Jan Edmund Lazo
6ad8294d5c
vim-patch:8.1.0257: no test for pathshorten()
...
Problem: No test for pathshorten().
Solution: Add a test. (Dominique Pelle, closes vim/vim#3295 )
bfde0b482d
2018-08-09 09:49:07 -04:00
Jan Edmund Lazo
218fccaba4
vim-patch:8.1.0204: inputlist() is not tested
...
Problem: inputlist() is not tested.
Solution: Add a test. (Dominique Pelle, closes vim/vim#3240 )
947b39e761
2018-08-09 09:25:26 -04:00
Jan Edmund Lazo
047dfcd294
vim-patch:8.1.0008: no test for strwidth()
...
Problem: No test for strwidth().
Solution: Add a test. (Dominique Pelle, closes vim/vim#2931 )
42ab17b8e3
2018-08-09 08:09:37 -04:00
Jan Edmund Lazo
4420dc3067
vim-patch:8.0.1421: accessing invalid memory with overlong byte sequence
...
Problem: Accessing invalid memory with overlong byte sequence.
Solution: Check for NUL character. (test by Dominique Pelle, closes vim/vim#2485 )
e6640ad44e
2018-08-09 00:55:20 -04:00
Jan Edmund Lazo
a445887985
vim-patch:8.0.1410: hang when using count() with an empty string
...
Problem: Hang when using count() with an empty string.
Solution: Return zero for an empty string. (Dominique Pelle, closes vim/vim#2465 )
338e47fdfd
2018-08-09 00:44:06 -04:00
Jan Edmund Lazo
fe6cf2812b
vim-patch:8.0.1105: match() and matchend() are not tested
...
Problem: match() and matchend() are not tested.
Solution: Add tests. (Ozaki Kiichi, closes vim/vim#2088 )
1190cf68e2
2018-08-08 22:38:23 -04:00
Jan Edmund Lazo
3c6eb9871a
vim-patch:8.0.1004: matchstrpos() without a match returns too many items
...
Problem: Matchstrpos() without a match returns too many items.
Solution: Also remove the second item when the position is beyond the end of
the string. (Hirohito Higashi) Use an enum for the type.
8d9f0ef5c6
2018-08-08 21:59:24 -04:00
Justin M. Keyes
0b3555b5dd
Merge #8831 from janlazo/vim-8.1.0009
2018-08-09 02:30:19 +02:00
Justin M. Keyes
72fecad1ff
Merge #8804 from battlmonstr/lang_region_crash
...
Fix crash in lang_init() on macOS if lang_region = NULL
2018-08-09 02:02:36 +02:00
Justin M. Keyes
0478fb3b58
Merge #8797 from janlazo/vim-8.0.0687
2018-08-09 02:00:28 +02:00
Jason Felice
c7efc6047d
vim-patch.sh: Pass directory name to find ( #8830 )
...
BSD/Mac find requires directory names before arguments.
2018-08-09 01:56:55 +02:00
Jan Edmund Lazo
f7f79c60bb
vim-patch:8.1.0241: effect of ":tabmove N" is not clear
...
Problem: Effect of ":tabmove N" is not clear.
Solution: Add a test that shows the behavior. (Christian Brabandt,
closes vim/vim#3288 )
7cc596547a
2018-08-08 19:36:07 -04:00
Jan Edmund Lazo
345789f9ef
vim-patch:8.1.0009: tabpages insufficiently tested
...
Problem: Tabpages insufficiently tested.
Solution: Add more test coverage. (Dominique Pelle, closes vim/vim#2934 )
dbe8869c41
2018-08-08 19:35:35 -04:00
Marco Hinz
d581398779
ruby: detect rbenv shims for other versions ( #8733 )
...
When rbenv is used for managing Ruby installations, just checking for an
executable called "neovim-ruby-host" is not enough. It has to be run as well.
If it does not return 0, then neovim-ruby-host is merely a shim for another Ruby
installation.
$ rbenv versions
2.5.0
* 2.5.1 (set by /Users/mhi/.rbenv/version)
$ rbenv whence neovim-ruby-host
2.5.0
$ which neovim-ruby-host
/Users/mhi/.rbenv/shims/neovim-ruby-host
$ neovim-ruby-host
rbenv: neovim-ruby-host: command not found
The `neovim-ruby-host' command exists in these Ruby versions:
2.5.0
$ echo $?
127
Additionally, the detection logic was moved from provider#ruby#Detect() to
s:detect(), because the former is run in the sandbox which forbids calling
system().
2018-08-09 00:47:35 +02:00
Jan Edmund Lazo
c1187d4af0
defaults: win: 'shellpipe' for cmd.exe ( #8827 )
...
">%s 2>&1" redirects stderr to a file, same as 'shellredir' on Windows.
2018-08-08 23:37:14 +02:00
Justin M. Keyes
8213109304
Merge #8821 from janlazo/vim-8.1.0003
2018-08-08 10:49:09 +02:00
Jan Edmund Lazo
d6af425322
oldtests: win: set shellpipe for cmd.exe
...
Redirect errors from :make to error file.
Fix execption error in test_compiler.vim on Windows.
2018-08-07 23:04:04 -04:00
Justin M. Keyes
b7a417c5e6
Merge #8744 from janlazo/vim-8.0.0890
2018-08-08 02:22:34 +02:00
Justin M. Keyes
c06613d2f6
Merge #8665 'Remove mb_ptr2char macro'
2018-08-08 01:24:18 +02:00
Jan Edmund Lazo
d5e8b3f451
misc: fixpos in del_char() is bool
2018-08-07 19:07:54 -04:00
Jan Edmund Lazo
0e4a54a17b
edit: end_insert in check_auto_format() is bool
2018-08-07 13:20:46 -04:00
Jan Edmund Lazo
a2eff8f15c
edit: did_add_space is bool
2018-08-07 13:16:38 -04:00
Jan Edmund Lazo
672449e448
memline: copy in ml_replace() is bool
2018-08-07 13:11:51 -04:00
Jan Edmund Lazo
80df0a8fd2
ops: is_del in block_prep() is bool
2018-08-07 12:13:41 -04:00
Jan Edmund Lazo
2b229b816b
window: no_display in restore_win() is bool
2018-08-07 11:40:54 -04:00
Jan Edmund Lazo
1468946154
ops: add const to shift_block() variables
2018-08-07 11:35:07 -04:00
Jan Edmund Lazo
5493139c9f
tests: win: fix pathsep of :compiler paths
2018-08-06 23:51:10 -04:00
Jan Edmund Lazo
daca22f5b2
vim-patch:8.1.0005: test for :compiler command fails on MS-Windows
...
Problem: Test for :compiler command fails on MS-Windows.
Solution: Ignore difference in path.
d19b234154
2018-08-06 22:55:04 -04:00
Jan Edmund Lazo
196cc13130
vim-patch:8.1.0004: test for :compiler command sometimes fails
...
Problem: Test for :compiler command sometimes fails.
Solution: Be less strict about the error message. (Dominique Pelle)
54651f7494
2018-08-06 22:54:16 -04:00
Jan Edmund Lazo
f9f37193d1
vim-patch:8.1.0003: the :compiler command is not tested
...
Problem: The :compiler command is not tested.
Solution: Add a test. (Dominique Pelle, closes vim/vim#2930 )
10561fe0a3
2018-08-06 22:53:53 -04:00
Jan Edmund Lazo
c233277737
eval: add const to f_gettabvar() variables
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
e6127a49db
edit: temp in ins_del() is const int
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
f807a7de04
vim-patch:8.1.0007: no test for "o" and "O" in Visual block mode
...
Problem: No test for "o" and "O" in Visual block mode.
Solution: Add a test. (Dominique Pelle, closes vim/vim#2932 )
2e94976abd
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
343c226abf
vim-patch:8.0.1811: no test for winrestcmd()
...
Problem: No test for winrestcmd().
Solution: Add a test. (Dominique Pelle, closes vim/vim#2894 )
72cf47a279
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
1b3cbb39a1
vim-patch:8.0.1705: when making a vertical split the mode message isn't updated
...
Problem: When making a vertical split the mode message isn't always
updated, "VISUAL" remains. (Alexei Averchenko)
Solution: Only reset clear_cmdline when filling all columns of the last
screen line. (Tom M. closes vim/vim#2611 )
5bab555c2f
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
a8ff55d50e
vim-patch:8.0.1446: acessing freed memory after window command in auto command
...
Problem: Acessing freed memory after window command in auto command.
(gy741)
Solution: Adjust the pointer in the parent frame. (Christian Brabandt,
closes vim/vim#2467 )
6f361c9912
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
ce5d755048
vim-patch:8.0.1579: virtual replace test fails in GUI
...
Problem: Virtual replace test fails in GUI.
Solution: Don't save key options if they were not set.
df0d24b627
2018-08-06 21:56:39 -04:00