]> git.neil.brown.name Git - edlib.git/commitdiff
discard move_cursor()
authorNeilBrown <neil@brown.name>
Tue, 12 Jan 2016 02:57:04 +0000 (13:57 +1100)
committerNeilBrown <neil@brown.name>
Tue, 12 Jan 2016 02:57:04 +0000 (13:57 +1100)
no longer needed - we have a new way of positioning the cursor.

Signed-off-by: NeilBrown <neil@brown.name>
display-ncurses.c

index b1acb31b212183db55c2be71b3c7c8478a796e26..edf102d48731b97823fcb422ddef64ee9eb32407 100644 (file)
@@ -42,24 +42,6 @@ static void set_screen(SCREEN *scr)
        current_screen = scr;
 }
 
-static void move_cursor(struct pane *p)
-{
-       int ox;
-       int oy;
-
-       p = pane_with_cursor(p, &ox, &oy);
-
-       if (p) {
-               int cx = p->cx;
-               int cy = p->cy;
-               if (cx >= p->w)
-                       cx = p->w - 1;
-               if (cy >= p->h)
-                       cy = p->h - 1;
-               move(oy+cy, ox+cx);
-       }
-}
-
 DEF_CMD(input_handle);
 DEF_CMD(handle_winch);
 
@@ -196,7 +178,6 @@ DEF_CMD(ncurses_handle)
 
                if (ci->numeric > 0) {
                        /* post-order call */
-                       move_cursor(p);
                        if (dd->cursor.x >= 0)
                                move(dd->cursor.y, dd->cursor.x);
                        refresh();