patch 9.1.1432: GTK GUI: Buffer menu does not handle unicode correctly
Problem: GTK GUI: Buffer menu does not handle unicode correctly Solution: Get rid of the BMHash() function (SUN Haitao) fixes: #17403 closes: #17405 Signed-off-by: SUN Haitao <sunhaitao@devtaste.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
d6c9ac97a0
commit
08896dd330
@ -1769,4 +1769,17 @@ func Test_CursorHold_not_triggered_at_startup()
|
||||
call assert_equal(['g:cursorhold_triggered=0'], found)
|
||||
endfunc
|
||||
|
||||
" Test that buffer names are shown at the end in the :Buffers menu
|
||||
func Test_Buffers_Menu()
|
||||
doautocmd LoadBufferMenu VimEnter
|
||||
|
||||
let name = '天'
|
||||
exe ':badd ' .. name
|
||||
let nr = bufnr('$')
|
||||
|
||||
let cmd = printf(':amenu Buffers.%s\ (%d)', name, nr)
|
||||
let menu = split(execute(cmd), '\n')[1]
|
||||
call assert_match('^9999 '.. name, menu)
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
@ -709,6 +709,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1432,
|
||||
/**/
|
||||
1431,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user