1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

run make format

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel 2022-03-28 16:31:11 +02:00
parent 2995fbb953
commit 2ca63d1d5f
2 changed files with 4 additions and 3 deletions

View File

@ -2277,7 +2277,8 @@ _get_default_string(preference_t pref)
return "xdg-open"; return "xdg-open";
case PREF_URL_OPEN_CMD: case PREF_URL_OPEN_CMD:
return "xdg-open %u"; return "xdg-open %u";
case PREF_COMPOSE_EDITOR: { case PREF_COMPOSE_EDITOR:
{
gchar* editor = getenv("EDITOR"); gchar* editor = getenv("EDITOR");
return editor ? editor : "vim"; return editor ? editor : "vim";
} }

View File

@ -2033,8 +2033,8 @@ win_quote_autocomplete(ProfWin* window, const char* const input, gboolean previo
return NULL; return NULL;
} }
gchar **parts = g_strsplit(result, "\n", -1); gchar** parts = g_strsplit(result, "\n", -1);
gchar *quoted_result = g_strjoinv("\n> ", parts); gchar* quoted_result = g_strjoinv("\n> ", parts);
GString* replace_with = g_string_new("> "); GString* replace_with = g_string_new("> ");
g_string_append(replace_with, quoted_result); g_string_append(replace_with, quoted_result);