Merge remote-tracking branch 'origin/pr/3318'
This commit is contained in:
commit
25be4d4383
@ -178,7 +178,7 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
|
|||||||
def callback(text):
|
def callback(text):
|
||||||
self.set_cmd_text(text)
|
self.set_cmd_text(text)
|
||||||
if run:
|
if run:
|
||||||
self.got_cmd[str].emit(text)
|
self.command_accept()
|
||||||
|
|
||||||
ed.editing_finished.connect(callback)
|
ed.editing_finished.connect(callback)
|
||||||
ed.edit(self.text())
|
ed.edit(self.text())
|
||||||
|
@ -149,3 +149,4 @@ Feature: Opening external editors
|
|||||||
And I set up a fake editor replacing "foo" by "bar"
|
And I set up a fake editor replacing "foo" by "bar"
|
||||||
And I run :edit-command --run
|
And I run :edit-command --run
|
||||||
Then the message "bar" should be shown
|
Then the message "bar" should be shown
|
||||||
|
And "Leaving mode KeyMode.command (reason: cmd accept)" should be logged
|
||||||
|
Loading…
Reference in New Issue
Block a user