input to NANO_ENTER_KEY so that the cursor position is reset properly
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2218
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
do_statusbar_verbatim_input(&got_enter);
- /* If we got the Enter key, set finished to
+ /* If we got the Enter key, set input to the
+ * key value for Enter, and set finished to
* TRUE to indicate that we're done. */
- if (got_enter)
+ if (got_enter) {
+ input = NANO_ENTER_KEY;
*finished = TRUE;
+ }
}
break;
}