mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:8.2.2577: compiler warning for type conversion
Problem: Compiler warning for type conversion. Solution: Add a typecast. (Mike Williams)9355ae4149
N/A patches for version.c: vim-patch:8.1.0783: compiler warning for signed/unsigned Problem: Compiler warning for signed/unsigned. Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes vim/vim#3827)63c0ccd2b6
Neovim was refactored to prefer char type for string functions, not char_u. vim-patch:8.2.2152: screenpos() does not include the WinBar offset Problem: screenpos() does not include the WinBar offset. Solution: Use W_WINROW() instead of directly using w_window. (closes vim/vim#7487)8dd46e72cf
W_WINROW() was removed so port only the test changes. The test is currently skipped.
This commit is contained in:
@@ -2656,7 +2656,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow,
|
||||
// already be in use.
|
||||
xfree(p_extra_free);
|
||||
p_extra_free = xmalloc(MAX_MCO * fdc + 1);
|
||||
n_extra = fill_foldcolumn(p_extra_free, wp, foldinfo, lnum);
|
||||
n_extra = (int)fill_foldcolumn(p_extra_free, wp, foldinfo, lnum);
|
||||
p_extra_free[n_extra] = NUL;
|
||||
p_extra = p_extra_free;
|
||||
c_extra = NUL;
|
||||
|
@@ -92,6 +92,11 @@ func Test_screenpos()
|
||||
\ 'endcol': wincol + 9}, screenpos(winid, 2, 22))
|
||||
close
|
||||
bwipe!
|
||||
|
||||
call assert_equal({'col': 1, 'row': 1, 'endcol': 1, 'curscol': 1}, screenpos(win_getid(), 1, 1))
|
||||
nmenu WinBar.TEST :
|
||||
call assert_equal({'col': 1, 'row': 2, 'endcol': 1, 'curscol': 1}, screenpos(win_getid(), 1, 1))
|
||||
nunmenu WinBar.TEST
|
||||
endfunc
|
||||
|
||||
func Test_screenpos_number()
|
||||
|
Reference in New Issue
Block a user