summaryrefslogtreecommitdiffstats
path: root/src/askloc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-07-09 08:38:40 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-07-09 08:38:40 +0200
commitecae6da2e6b8149e1a26e089e2c1b3ada3f6e3d3 (patch)
tree838a78ecb2ce5c454b473c84c07d72f3954db842 /src/askloc.c
parent32d4804ebde324f94212115f684c700d1fe6accf (diff)
Can stop file copy
Diffstat (limited to 'src/askloc.c')
-rw-r--r--src/askloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/askloc.c b/src/askloc.c
index a74ce47..0a8b5ec 100644
--- a/src/askloc.c
+++ b/src/askloc.c
@@ -553,6 +553,8 @@ char *ask_location(const char*msg, const char *src_dir, const char *dst_org)
if(offset+old_LINES <= pos_num+line_base+1)
offset=pos_num + line_base + 2 - old_LINES;
} while(quit==ASK_LOCATION_WAITKEY && old_LINES==LINES);
+ wmove(window, line_directory-1, 0);
+ wclrtoeol(window); /* before addstr for BSD compatibility */
} while(quit==ASK_LOCATION_UPDATE || old_LINES!=LINES);
delete_list_file(&dir_list);
}
@@ -562,6 +564,7 @@ char *ask_location(const char*msg, const char *src_dir, const char *dst_org)
quit=ASK_LOCATION_NEWDIR;
}
} while(quit==ASK_LOCATION_NEWDIR);
+ wrefresh(window);
delwin(window);
(void) clearok(stdscr, TRUE);
#ifdef HAVE_TOUCHWIN