mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
editor: dont print preview in window
See https://github.com/profanity-im/profanity/issues/1521#issue-860017824
This commit is contained in:
parent
158cfaface
commit
a4deec8b8d
@ -9459,8 +9459,6 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args)
|
|||||||
if (size_read > 0 && size_read <= COUNT) {
|
if (size_read > 0 && size_read <= COUNT) {
|
||||||
buf[size_read - 1] = '\0';
|
buf[size_read - 1] = '\0';
|
||||||
GString* text = g_string_new(buf);
|
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);
|
rl_insert_text(text->str);
|
||||||
g_string_free(text, TRUE);
|
g_string_free(text, TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user