Fix :buffer completion
This commit is contained in:
parent
52efa9f185
commit
5dd4b2d56a
@ -241,12 +241,12 @@ class TabCompletionModel(base.BaseCompletionModel):
|
|||||||
tab = tabbed_browser.widget(idx)
|
tab = tabbed_browser.widget(idx)
|
||||||
if idx >= c.rowCount():
|
if idx >= c.rowCount():
|
||||||
self.new_item(c, "{}/{}".format(win_id, idx + 1),
|
self.new_item(c, "{}/{}".format(win_id, idx + 1),
|
||||||
tab.url().toDisplayString(),
|
tab.cur_url.toDisplayString(),
|
||||||
tabbed_browser.page_title(idx))
|
tabbed_browser.page_title(idx))
|
||||||
else:
|
else:
|
||||||
c.child(idx, 0).setData("{}/{}".format(win_id, idx + 1),
|
c.child(idx, 0).setData("{}/{}".format(win_id, idx + 1),
|
||||||
Qt.DisplayRole)
|
Qt.DisplayRole)
|
||||||
c.child(idx, 1).setData(tab.url().toDisplayString(),
|
c.child(idx, 1).setData(tab.cur_url.toDisplayString(),
|
||||||
Qt.DisplayRole)
|
Qt.DisplayRole)
|
||||||
c.child(idx, 2).setData(tabbed_browser.page_title(idx),
|
c.child(idx, 2).setData(tabbed_browser.page_title(idx),
|
||||||
Qt.DisplayRole)
|
Qt.DisplayRole)
|
||||||
|
Loading…
Reference in New Issue
Block a user