hints: fix corner-case in _hint_strings
This commit is contained in:
parent
ec5387c674
commit
108d735e07
@ -394,6 +394,8 @@ class HintManager(QObject):
|
|||||||
Return:
|
Return:
|
||||||
A list of hint strings, in the same order as the elements.
|
A list of hint strings, in the same order as the elements.
|
||||||
"""
|
"""
|
||||||
|
if not elems:
|
||||||
|
return []
|
||||||
hint_mode = self._context.hint_mode
|
hint_mode = self._context.hint_mode
|
||||||
if hint_mode == 'word':
|
if hint_mode == 'word':
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user