Don't tabcomplete if it's impossible
This commit is contained in:
parent
fb84bdb55c
commit
9e24731d9a
@ -148,6 +148,8 @@ class CompletionView(QTreeView):
|
|||||||
self.ignore_next = True
|
self.ignore_next = True
|
||||||
self.selectionModel().setCurrentIndex(
|
self.selectionModel().setCurrentIndex(
|
||||||
idx, QItemSelectionModel.ClearAndSelect)
|
idx, QItemSelectionModel.ClearAndSelect)
|
||||||
|
data = self.model.data(idx)
|
||||||
|
if data is not None:
|
||||||
self.append_cmd_text.emit(self.model.data(idx) + ' ')
|
self.append_cmd_text.emit(self.model.data(idx) + ' ')
|
||||||
|
|
||||||
def _next_idx(self, shift):
|
def _next_idx(self, shift):
|
||||||
|
Loading…
Reference in New Issue
Block a user