Skip to content

Commit

Permalink
Clean Code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Nov 12, 2024
1 parent 2d80419 commit 0a899cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtconsole/history_console_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _show_history_droplist(self):
items = self._history
items.reverse()
if (self._history_prefix):
items = [item for item in items if item.startswith(self._history_prefix)]
items = [item[len(self._history_prefix):] for item in items if item.startswith(self._history_prefix)]

cursor = self._get_cursor()
pos = len(self._history_prefix)
Expand Down

0 comments on commit 0a899cd

Please sign in to comment.