From a4deec8b8d26c7bd7312b972372b4ef3aab8eeda Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 10 Jun 2021 16:57:18 +0200 Subject: [PATCH] editor: dont print preview in window See https://github.com/profanity-im/profanity/issues/1521#issue-860017824 --- src/command/cmd_funcs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 4f68f26c..e1108982 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9459,8 +9459,6 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args) if (size_read > 0 && size_read <= COUNT) { buf[size_read - 1] = '\0'; GString* text = g_string_new(buf); - ProfWin* win = wins_get_current(); - win_println(win, THEME_DEFAULT, "!", "EDITOR PREVIEW: %s", text->str); rl_insert_text(text->str); g_string_free(text, TRUE); }