This commit is contained in:
Kovid Goyal 2019-03-19 12:35:12 +05:30
parent f760326ed2
commit ac5f1e9039
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -488,7 +488,9 @@ class TagsView(QTreeView): # {{{
if len(n) > 45: if len(n) > 45:
n = n[:45] + '...' n = n[:45] + '...'
ans = "'" + n + "'" ans = "'" + n + "'"
return ans.replace('&', '&&') if ans:
ans = ans.replace('&', '&&')
return ans
index = self.indexAt(point) index = self.indexAt(point)
self.context_menu = QMenu(self) self.context_menu = QMenu(self)