Skip to content
Permalink
Browse files

Merge pull request #39350 from uclaros/fix-del-console-history

Fix deleting python console history entries
  • Loading branch information
slarosa committed Oct 13, 2020
2 parents a3d6965 + 1f26bb0 commit 7b7a909318ede997e6cefb7bff5829bd5ec89b75
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/console/console_sci.py
@@ -598,6 +598,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 7b7a909

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