diff options
author | Karel Zak | 2014-08-06 15:39:27 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-06 15:39:27 +0200 |
commit | cd8414f7a13aca0b3ea150b473b83f00819b312f (patch) | |
tree | 4df71050746cde2f6ed96588fa8cabb1a8f3ca6e /disk-utils/cfdisk.c | |
parent | zramctl: remove extra \n from usage() (diff) | |
download | kernel-qcow2-util-linux-cd8414f7a13aca0b3ea150b473b83f00819b312f.tar.gz kernel-qcow2-util-linux-cd8414f7a13aca0b3ea150b473b83f00819b312f.tar.xz kernel-qcow2-util-linux-cd8414f7a13aca0b3ea150b473b83f00819b312f.zip |
cfdisk: move curs_set(1) to ui_end()
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>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r-- | disk-utils/cfdisk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index dfdaaf058..eff793355 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -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; } |