aboutsummaryrefslogtreecommitdiffstats
path: root/cmdbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdbuf.c')
-rw-r--r--cmdbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdbuf.c b/cmdbuf.c
index ec25096b7b0d..e387ccce8e86 100644
--- a/cmdbuf.c
+++ b/cmdbuf.c
@@ -727,9 +727,9 @@ cmd_updown(action)
s = ml->string;
if (s == NULL)
s = "";
- strcpy(cmdbuf, s);
cmd_home();
clear_eol();
+ strcpy(cmdbuf, s);
for (cp = cmdbuf; *cp != '\0'; )
cmd_right();
return (CC_OK);