diff options
| author | jixiuf <jixiuf@qq.com> | 2019-08-05 15:35:02 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2019-08-05 15:36:29 +0800 |
| commit | b77dba2441d9dc28181d1be195ef2095df303c44 (patch) | |
| tree | 554321701c4f101db0c4aa2400759f7fc3ecc806 | |
| parent | 73f5044bd9fa0dc1755078905a59b64f14fe6bfd (diff) | |
run clang-format
| -rw-r--r-- | vterm-module.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vterm-module.c b/vterm-module.c index 7565721..7b8270f 100644 --- a/vterm-module.c +++ b/vterm-module.c @@ -392,7 +392,8 @@ static void term_redraw(Term *term, emacs_env *env) { } if (term->directory_changed) { - set_directory(env, env->make_string(env, term->directory, strlen(term->directory))); + set_directory( + env, env->make_string(env, term->directory, strlen(term->directory))); term->directory_changed = false; } @@ -644,9 +645,8 @@ void term_finalize(void *object) { free(term); } -static int osc_callback(const char *command, size_t cmdlen, void *user) -{ - Term *term = (Term *) user; +static int osc_callback(const char *command, size_t cmdlen, void *user) { + Term *term = (Term *)user; char buffer[cmdlen + 1]; buffer[cmdlen] = '\0'; @@ -666,12 +666,12 @@ static int osc_callback(const char *command, size_t cmdlen, void *user) } static VTermParserCallbacks parser_callbacks = { - .text = NULL, - .control = NULL, - .escape = NULL, - .csi = NULL, - .osc = &osc_callback, - .dcs = NULL, + .text = NULL, + .control = NULL, + .escape = NULL, + .csi = NULL, + .osc = &osc_callback, + .dcs = NULL, }; emacs_value Fvterm_new(emacs_env *env, ptrdiff_t nargs, emacs_value args[], |
