lyrics: automatically refresh lyrics window after edit (console editors only)

This commit is contained in:
Moritz Lipp
2012-10-11 23:32:50 +02:00
committed by Andrzej Rybczak
parent a6ae22244c
commit 759322d00c

View File

@@ -359,6 +359,7 @@ void Lyrics::Edit()
if (Config.use_console_editor)
{
res = system(("/bin/sh -c \"" + Config.external_editor + " \\\"" + itsFilename + "\\\"\"").c_str());
Load();
// below is needed as screen gets cleared, but apparently
// ncurses doesn't know about it, so we need to reload main screen
endwin();