Skip to content

Commit

Permalink
Redo dot completion handling and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed May 12, 2020
1 parent e07c4fa commit 2b38bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qtconsole/completion_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def show_items(self, cursor, items, prefix_length=0):
else:
list_item = QtWidgets.QListWidgetItem()
list_item.setData(QtCore.Qt.UserRole, item)
list_item.setText(item)
# Need to split to only show last element of a dot completion
list_item.setText(item.split(".")[-1])
self.addItem(list_item)

common_prefix = os.path.dirname(os.path.commonprefix(path_items))
Expand Down

0 comments on commit 2b38bab

Please sign in to comment.