]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: make sure that extra info is refreshed/removed
authorKarel Zak <kzak@redhat.com>
Wed, 22 Jul 2015 12:28:33 +0000 (14:28 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Jul 2015 12:28:33 +0000 (14:28 +0200)
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>
disk-utils/cfdisk.c

index aaa55ffc5ea06fbbb6617f9f2ea95f23a6d23d66..11a087ee787cb78db494bb3552f6e032909ef726 100644 (file)
@@ -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);