Pass caret_position to editor's edit()

This commit is contained in:
Luca Benci 2017-10-12 22:43:31 +02:00
parent 67e41af875
commit cdf4f69251

View File

@ -1594,10 +1594,12 @@ class CommandDispatcher:
return
assert isinstance(text, str), text
caret_position = elem.caret_position()
ed = editor.ExternalEditor(self._tabbed_browser)
ed.editing_finished.connect(functools.partial(
self.on_editing_finished, elem))
ed.edit(text)
ed.edit(text, caret_position)
@cmdutils.register(instance='command-dispatcher', hide=True,
scope='window')