Skip to content

Commit

Permalink
Fix deleting python console history entries
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Oct 13, 2020
1 parent 3119eb7 commit 1f26bb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/console/console_sci.py
Expand Up @@ -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.