From: Sven Speckmaier Date: Mon, 28 May 2018 14:05:54 +0000 (+0200) Subject: fix indentation to adher to the contribution guidlines X-Git-Url: https://git.owens.tech/assets/me.png/assets/me.png/git?a=commitdiff_plain;h=0b03bb353581ee8325e2dd5fc7dfb1edae3a94cf;p=vimb.git fix indentation to adher to the contribution guidlines --- diff --git a/src/input.c b/src/input.c index e8a380b..2a90c25 100644 --- a/src/input.c +++ b/src/input.c @@ -171,7 +171,7 @@ VbResult input_open_editor(Client *c) EditorData *data = g_slice_new0(EditorData); data->file = file_path; data->c = c; - data->element_id = g_strdup(id); + data->element_id = g_strdup(id); g_child_watch_add(pid, (GChildWatchFunc)resume_editor, data); return RESULT_COMPLETE; @@ -181,6 +181,7 @@ static void resume_editor(GPid pid, int status, EditorData *data) { char *text, *escaped; char *jscode; + char *jscode_enable; g_assert(pid); g_assert(data); @@ -204,12 +205,11 @@ static void resume_editor(GPid pid, int status, EditorData *data) } } - char *jscode_enable = g_strdup_printf( - "document.getElementById(\"%s\").disabled=false;" - "document.getElementById(\"%s\").focus()" - , data->element_id, data->element_id); - ext_proxy_eval_script(data->c, - jscode_enable, NULL); + jscode_enable = g_strdup_printf( + "document.getElementById(\"%s\").disabled=false;" + "document.getElementById(\"%s\").focus()" + , data->element_id, data->element_id); + ext_proxy_eval_script(data->c, jscode_enable, NULL); g_unlink(data->file); g_free(data->file);