Skip to content
Permalink
Browse files

Fix deleting python console history entries

  • Loading branch information
uclaros committed Oct 13, 2020
1 parent 3119eb7 commit 1f26bb03f44001938a3c7b47ab4a68c7e749f241
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/console/console_sci.py
@@ -631,6 +631,10 @@ def _deleteItem(self):
item = itemsSelected[0].row()
# Remove item from the command history (just for the current session)
self.parent.history.pop(item)
self.parent.historyIndex -= 1
self.parent.softHistory.pop(item)
if item < self.parent.softHistoryIndex:
self.parent.softHistoryIndex -= 1
self.parent.setText(self.parent.softHistory[self.parent.softHistoryIndex])
self.parent.move_cursor_to_end()
# Remove row from the command history dialog
self.model.removeRow(item)

0 comments on commit 1f26bb0

Please sign in to comment.
You can’t perform that action at this time.