Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vim-mode/vim_mode.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,7 @@ sub got_key {
_stop();
return;

} elsif ($key == 10) { # enter.
} elsif ($key == 10 || $key == 13) { # enter.
_commit_line();

} elsif ($input_buf_enabled and $imap) {
Expand Down Expand Up @@ -3051,7 +3051,7 @@ sub handle_command_cmd {
}

# Enter key sends the current input line in command mode as well.
} elsif ($key == 10) {
} elsif ($key == 10 || $key == 13) {
_commit_line();
return 0; # don't call _stop()

Expand Down Expand Up @@ -3194,7 +3194,7 @@ sub handle_command_ex {
}

# Return key - execute command
} elsif ($key == 10) {
} elsif ($key == 10 || $key == 13) {
print "Run ex-mode command" if DEBUG;
cmd_ex_command();
_update_mode(M_CMD);
Expand Down