]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: move curs_set(1) to ui_end()
authorKarel Zak <kzak@redhat.com>
Wed, 6 Aug 2014 13:39:27 +0000 (15:39 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Aug 2014 13:39:27 +0000 (15:39 +0200)
This is probably correct to have curs_set() in ui_end(), but according
to Martin it does not work with slang library from signal handler.

Reported-by: Martin Steigerwald <Martin@lichtvoll.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index dfdaaf05864fb0fcaea4b372416ec9f24d9dab55..eff7933552527d5926b150a5e5c16f0abe6623bd 100644 (file)
@@ -525,6 +525,7 @@ static int ui_end(void)
 #else
        mvcur(0, COLS - 1, LINES-1, 0);
 #endif
+       curs_set(1);
        nl();
        endwin();
        printf("\n");
@@ -1966,9 +1967,7 @@ static int ui_run(struct cfdisk *cf)
 
        menu_pop(cf);
 
-       curs_set(1);
        DBG(FRONTEND, ul_debug("ui: end"));
-
        return 0;
 }