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
Jan Edmund Lazo
62424fe6ee
vim-patch:8.0.1577: virtual replace test fails on MS-Windows
...
Problem: Virtual replace test fails on MS-Windows.
Solution: Make adding a termcap entry work for a builtin terminal.
Restore terminal keys in a better way.
e780848150
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
f53c2578e7
vim-patch:8.0.1575: crash when using virtual replace
...
Problem: Crash when using virtual replace.
Solution: Adjust orig_line_count. Add more tests. (Christian Brabandt)
63e82db6fc
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
7f2e352700
vim-patch:8.0.0879: crash when shifting with huge number
...
Problem: Crash when shifting with huge number.
Solution: Check for overflow. (Dominique Pelle, closes vim/vim#1945 )
bae5a17a73
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
0e57c753d6
vim-patch:8.0.1601: highlight test fails on Win32
...
Problem: Highlight test fails on Win32.
Solution: Check for vtp and vcon support.
ff1e879577
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
e105e1242a
vim-patch:8.0.1600: crash when setting t_Co to zero when 'termguicolors' is set
...
Problem: Crash when setting t_Co to zero when 'termguicolors' is set.
Solution: Use IS_CTERM instead of checking the number of colors.
(closes vim/vim#2710 )
f708ac592f
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
11bd0b8870
vim-patch:8.0.1169: highlignting one char too many with 'list' and 'cul'
...
Problem: Highlignting one char too many with 'list' and 'cul'.
Solution: Check for 'list' being active. (Ozaki Kiichi, closes vim/vim#2177 )
5ece3e359c
2018-08-06 21:56:39 -04:00
Jan Edmund Lazo
a920ae89e9
vim-patch:8.0.1168: wrong highlighting with combination of match and 'cursorline'
...
Problem: wrong highlighting with combination of match and 'cursorline'.
Solution: Use "line_attr" when appropriate. (Ozaki Kiichi, closes vim/vim#2111 )
But don't highlight more than one character.
0aa398f55a
2018-08-06 21:56:38 -04:00
Jan Edmund Lazo
593c0bd77f
vim-patch:8.0.1216: tabline is not always updated for :file command
...
Problem: Tabline is not always updated for :file command. (Norio Takagi)
Solution: Set redraw_tabline. (Hirohito Higashi)
6ce6504808
2018-08-06 21:56:38 -04:00
Jan Edmund Lazo
059986e038
vim-patch:8.0.1160: getting tab-local variable fails after closing window
...
Problem: Getting tab-local variable fails after closing window.
Solution: set tp_firstwin and tp_lastwin. (Jason Franklin, closes vim/vim#2170 )
816968defc
2018-08-06 21:56:38 -04:00
Jan Edmund Lazo
d671168574
vim-patch:8.0.0890: still many old style tests
...
Problem: Still many old style tests.
Solution: Convert several tests to new style. (Yegappan Lakshmanan)
75373f3808
2018-08-06 21:56:38 -04:00
ZviRackover
5cecd7a93a
style: fixing minor issues noted in code review.
2018-08-06 22:27:10 +03:00
ZviRackover
071aab5148
Remove some occrrences of enc_utf8 and has_mbyte
...
Removing uses and related dead code in the locallity of changes of
the two parent commits.
2018-08-06 20:48:07 +03:00
ZviRackover
cd3b2e4b6b
lint: clean-up after parent commit
2018-08-06 20:48:07 +03:00
ZviRackover
10b6afd652
Remove all occurences of the mb_ptr2char macro
...
First step towards implemening issue #7401 .
The same can be done for all deprecated mb_ functions in follow-up
patches.
2018-08-06 20:48:07 +03:00
Justin M. Keyes
1593ee7cf2
Merge #8820 from janlazo/vim-8.0.0671
2018-08-06 19:16:42 +02:00
Jan Edmund Lazo
41dbb69a85
lint
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
47d52e1578
globals: did_ai is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
b9ab363636
globals: did_si is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
7692dfeecb
globals: can_si is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
5309ad29d4
globals: can_si_back is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
6bff0f7b60
edit: haveto_redraw (local variable) is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
96f165e744
edit: can_cindent is bool
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
8f75debd86
edit: fix variables in ins_mousescroll()
...
Declare and initialize them on same line.
Add const if possible.
Refactor 'did_scroll' local variable from int to bool.
2018-08-06 11:49:59 -04:00
Jan Edmund Lazo
4df0ea98dc
globals: typebuf_was_filled is bool
2018-08-06 11:49:59 -04:00
Daniel Hahler
3aca372ac8
vim-patch:8.1.0240: g:actual_curbuf set in wrong scope ( #8818 )
...
Problem: g:actual_curbuf set in wrong scope. (Daniel Hahler)
Solution: Prepend the "g:" name space. (closes vim/vim#3279 )
3cb4448b8a
2018-08-06 03:37:15 +02:00
Jan Edmund Lazo
4ca2cf4b47
vim-patch:8.0.1507: timer test is a bit flaky
...
Problem: Timer test is a bit flaky.
Solution: Add it to the list of flaky tests.
bfbea567d8
2018-08-05 17:55:49 -04:00
Jan Edmund Lazo
e7e2115de5
vim-patch:8.0.0948: crash if timer closes window while dragging status line
...
Problem: Crash if timer closes window while dragging status line.
Solution: Check if the window still exists. (Yasuhiro Matsumoto, closes
vim/vim#1979 )
989a70c590
2018-08-05 17:42:49 -04:00
Jan Edmund Lazo
fe6e4b3244
vim-patch:8.0.0722: screen is messed by timer up at inputlist() prompt
...
Problem: Screen is messed by timer up at inputlist() prompt.
Solution: Set state to ASKMORE. (closes vim/vim#1843 )
c9041079a1
2018-08-05 17:20:09 -04:00
Jan Edmund Lazo
2b8792e303
vim-patch:8.0.0671: hang when typing CTRL-C in confirm() in timer
...
Problem: When a function invoked from a timer calls confirm() and the user
types CTRL-C then Vim hangs.
Solution: Reset typebuf_was_filled. (Ozaki Kiichi, closes vim/vim#1791 )
4eb6531b03
2018-08-05 17:18:57 -04:00
hyatskov
b42c80e561
eval, ex_getln: Fix incompatible pointer types ( #8792 )
...
Fixes #8786
gcc (GCC) 8.1.1 20180531 warning:
[76/182] Building C object src/nvim/CMakeFiles/nvim.dir/ex_getln.c.o
../src/nvim/ex_getln.c: In function ‘ExpandUserDefined’:
../src/nvim/ex_getln.c:5071:34: warning: cast between incompatible function types from ‘char * (*)(const char * const, const int, const char_u * const* const, const _Bool)’ {aka ‘char * (*)(const char * const, const int, const unsigned char * const* const, const _Bool)’} to ‘void * (*)(char_u *, int, char_u **, int)’ {aka ‘void * (*)(unsigned char *, int, unsigned char **, int)’} [-Wcast-function-type]
retstr = call_user_expand_func((user_expand_func_T)call_func_retstr, xp,
2018-08-05 02:37:00 +02:00