diff options
| author | Karel Zak <kzak@redhat.com> | 2014-08-06 15:39:27 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2014-08-06 15:39:27 +0200 |
| commit | cd8414f7a13aca0b3ea150b473b83f00819b312f (patch) | |
| tree | 4df71050746cde2f6ed96588fa8cabb1a8f3ca6e | |
| parent | 423c0d75ece4379d1f4600537f6397525a138021 (diff) | |
| download | util-linux-cd8414f7a13aca0b3ea150b473b83f00819b312f.tar.gz | |
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>
| -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 dfdaaf0586..eff7933552 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; } |
