From 94e10ac465bceccc8cbd5b23c605dc3f721d6d62 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 21 Jan 2008 01:13:04 +0000 Subject: [PATCH] Save/restore original cursor position. --- src/uifc/filepick.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uifc/filepick.c b/src/uifc/filepick.c index f9cc52d2de..afc22de556 100644 --- a/src/uifc/filepick.c +++ b/src/uifc/filepick.c @@ -317,6 +317,8 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char int retval=0; int fieldmove; int oldhu=hold_update; + int oldx=wherex(); + int oldy=wherey(); height=api->scrn_len-3; width=SCRN_RIGHT-SCRN_LEFT-3; @@ -641,6 +643,7 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char cleanup: /* Cleans up allocated variables returns from function */ hold_update=oldhu; + gotoxy(oldx,oldy); FREE_AND_NULL(lastpath); FREE_AND_NULL(tmppath); FREE_AND_NULL(tmplastpath); -- GitLab