summaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
authorKarel Zak2015-07-22 14:28:33 +0200
committerKarel Zak2015-07-22 14:28:33 +0200
commitcbcafba2bbfad34efff3c4e0b80038f1dd6646b3 (patch)
tree48e83d5f6c2ba061fed4d680aad590e7ca802175 /disk-utils/cfdisk.c
parentcfdisk: properly toggle extra info window, make it more robust (diff)
downloadkernel-qcow2-util-linux-cbcafba2bbfad34efff3c4e0b80038f1dd6646b3.tar.gz
kernel-qcow2-util-linux-cbcafba2bbfad34efff3c4e0b80038f1dd6646b3.tar.xz
kernel-qcow2-util-linux-cbcafba2bbfad34efff3c4e0b80038f1dd6646b3.zip
cfdisk: make sure that extra info is refreshed/removed
For example when you move from a Partition to the FreeSapce then we need to remove old extra info and draw nothing. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r--disk-utils/cfdisk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index aaa55ffc5..11a087ee7 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -1380,8 +1380,10 @@ static int ui_draw_extra(struct cfdisk *cf)
assert(ln->extra);
- if (cf->act_win)
+ if (cf->act_win) {
wclear(cf->act_win);
+ touchwin(stdscr);
+ }
if (scols_table_is_empty(ln->extra)) {
extra_prepare_data(cf);