Skip to content

Commit

Permalink
Merge from 5.x: PR #17063
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Dec 24, 2021
2 parents a71dbb2 + f7d6755 commit 5c61293
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2683,6 +2683,8 @@ def go_to_next_cursor_position(self):
@Slot()
def go_to_line(self, line=None):
"""Open 'go to line' dialog"""
if isinstance(line, bool):
line = None
editorstack = self.get_current_editorstack()
if editorstack is not None:
editorstack.go_to_line(line)
Expand Down
3 changes: 3 additions & 0 deletions spyder/plugins/editor/widgets/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,9 @@ def open_switcher_dlg(self, initial_text=''):
lambda: self,
section=self.get_plugin_title())

if isinstance(initial_text, bool):
initial_text = ''

self.switcher_dlg.set_search_text(initial_text)
self.switcher_dlg.setup()
self.switcher_dlg.show()
Expand Down

0 comments on commit 5c61293

Please sign in to comment.