File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ function! s:RedrawFinderPopup() abort
499
499
\ .. line_num
500
500
let path_includes_line = 1
501
501
502
- let spaces = available_width - len ( desc ) - len ( path )
502
+ let spaces = available_width - strdisplaywidth ( desc ) - strdisplaywidth ( path )
503
503
let spacing = 4
504
504
if spaces < spacing
505
505
let spaces = spacing
@@ -524,16 +524,16 @@ function! s:RedrawFinderPopup() abort
524
524
if len ( path ) > 0
525
525
if path_includes_line
526
526
let props += [
527
- \ { ' col' : available_width - len ( path ) + 1 ,
527
+ \ { ' col' : len ( desc ) + spaces + 1 ,
528
528
\ ' length' : len ( path ) - len ( line_num ),
529
529
\ ' type' : ' YCM-symbol-file' },
530
- \ { ' col' : available_width - len ( line_num ) + 1 ,
530
+ \ { ' col' : len ( desc ) + spaces + 1 + len ( path ) - len ( line_num ) ,
531
531
\ ' length' : len ( line_num ),
532
532
\ ' type' : ' YCM-symbol-line-num' },
533
533
\ ]
534
534
else
535
535
let props += [
536
- \ { ' col' : available_width - len ( path ) + 1 ,
536
+ \ { ' col' : len ( desc ) + spaces + 1 ,
537
537
\ ' length' : len ( path ),
538
538
\ ' type' : ' YCM-symbol-file' },
539
539
\ ]
You can’t perform that action at this time.
0 commit comments