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

This commit is contained in:
Moritz Lipp authored and Andrzej Rybczak committed 2012-11-02 18:24:51 +01:00
1 parent a6ae22244c
commit 759322d00c
1 file changed
+1
+1
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();