* readline.c (rl_save_state, rl_restore_state): Support systems
[deliverable/binutils-gdb.git] / readline / display.c
index e151cf2862bd2933ba0c1896bb7ed4e79b0d992b..e7b75912c9e465e49001c78a15041c975fa02559 100644 (file)
@@ -1642,10 +1642,10 @@ _rl_move_vert (to)
 #ifdef __MSDOS__
       int row, col;
 
-      l = fflush (rl_outstream); /* make sure the cursor pos is current! */
+      fflush (rl_outstream); /* make sure the cursor pos is current! */
       ScreenGetCursor (&row, &col);
-      ScreenSetCursor ((row + to - _rl_last_v_pos), col);
-      delta = i;
+      ScreenSetCursor (row + delta, col);
+      i = -delta;    /* in case someone wants to use it after the loop */
 #else /* !__MSDOS__ */
       if (_rl_term_up && *_rl_term_up)
        for (i = 0; i < -delta; i++)
This page took 0.027457 seconds and 4 git commands to generate.