From 0d116e6ef0f176bec053907920dd9c3655113562 Mon Sep 17 00:00:00 2001 From: pagedown Date: Mon, 8 Aug 2022 21:26:29 +0800 Subject: [PATCH] Use four spaces to indent --- glfw/egl_context.h | 8 ++++---- kittens/choose/main.c | 10 +++++----- kittens/diff/options/definition.py | 6 +++--- kittens/diff/speedup.c | 10 +++++----- kittens/transfer/rsync.c | 10 +++++----- kittens/unicode_input/unicode_names.c | 10 +++++----- kitty/data-types.c | 10 +++++----- kitty/loop-utils.c | 4 ++-- kitty/options/definition.py | 2 +- prewarm-launcher.c | 10 +++++----- 10 files changed, 40 insertions(+), 40 deletions(-) diff --git a/glfw/egl_context.h b/glfw/egl_context.h index b35138a7e..10c4cf364 100644 --- a/glfw/egl_context.h +++ b/glfw/egl_context.h @@ -160,11 +160,11 @@ typedef EGLSurface (EGLAPIENTRY * PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC)(EGLD // typedef struct _GLFWcontextEGL { - EGLConfig config; - EGLContext handle; - EGLSurface surface; + EGLConfig config; + EGLContext handle; + EGLSurface surface; - void* client; + void* client; } _GLFWcontextEGL; diff --git a/kittens/choose/main.c b/kittens/choose/main.c index 5eda27c21..788f140cc 100644 --- a/kittens/choose/main.c +++ b/kittens/choose/main.c @@ -231,11 +231,11 @@ static PyMethodDef module_methods[] = { }; static struct PyModuleDef module = { - .m_base = PyModuleDef_HEAD_INIT, - .m_name = "subseq_matcher", /* name of module */ - .m_doc = NULL, - .m_size = -1, - .m_methods = module_methods + .m_base = PyModuleDef_HEAD_INIT, + .m_name = "subseq_matcher", /* name of module */ + .m_doc = NULL, + .m_size = -1, + .m_methods = module_methods }; EXPORTED PyMODINIT_FUNC diff --git a/kittens/diff/options/definition.py b/kittens/diff/options/definition.py index 2378441d8..8283a2649 100644 --- a/kittens/diff/options/definition.py +++ b/kittens/diff/options/definition.py @@ -56,9 +56,9 @@ A glob pattern that is matched against only the filename of files and directorie files and directories are ignored when scanning the filesystem to look for files to diff. Can be specified multiple times to use multiple patterns. For example:: - ignore_name .git - ignore_name *~ - ignore_name *.pyc + ignore_name .git + ignore_name *~ + ignore_name *.pyc ''', ) diff --git a/kittens/diff/speedup.c b/kittens/diff/speedup.c index d3607b4bc..1614e5ff4 100644 --- a/kittens/diff/speedup.c +++ b/kittens/diff/speedup.c @@ -187,11 +187,11 @@ static PyMethodDef module_methods[] = { }; static struct PyModuleDef module = { - .m_base = PyModuleDef_HEAD_INIT, - .m_name = "diff_speedup", /* name of module */ - .m_doc = NULL, - .m_size = -1, - .m_methods = module_methods + .m_base = PyModuleDef_HEAD_INIT, + .m_name = "diff_speedup", /* name of module */ + .m_doc = NULL, + .m_size = -1, + .m_methods = module_methods }; EXPORTED PyMODINIT_FUNC diff --git a/kittens/transfer/rsync.c b/kittens/transfer/rsync.c index c2c6cbfd3..c78f960da 100644 --- a/kittens/transfer/rsync.c +++ b/kittens/transfer/rsync.c @@ -243,11 +243,11 @@ static PyModuleDef_Slot slots[] = { {Py_mod_exec, (void*)exec_module}, {0, NULL} END_IGNORE_PEDANTIC_WARNINGS static struct PyModuleDef module = { - .m_base = PyModuleDef_HEAD_INIT, - .m_name = "rsync", /* name of module */ - .m_doc = NULL, - .m_slots = slots, - .m_methods = module_methods + .m_base = PyModuleDef_HEAD_INIT, + .m_name = "rsync", /* name of module */ + .m_doc = NULL, + .m_slots = slots, + .m_methods = module_methods }; EXPORTED PyMODINIT_FUNC diff --git a/kittens/unicode_input/unicode_names.c b/kittens/unicode_input/unicode_names.c index 39db7b481..83f85bdab 100644 --- a/kittens/unicode_input/unicode_names.c +++ b/kittens/unicode_input/unicode_names.c @@ -101,11 +101,11 @@ static PyModuleDef_Slot slots[] = { {Py_mod_exec, (void*)exec_module}, {0, NULL} END_IGNORE_PEDANTIC_WARNINGS static struct PyModuleDef module = { - .m_base = PyModuleDef_HEAD_INIT, - .m_name = "unicode_names", /* name of module */ - .m_doc = NULL, - .m_slots = slots, - .m_methods = module_methods + .m_base = PyModuleDef_HEAD_INIT, + .m_name = "unicode_names", /* name of module */ + .m_doc = NULL, + .m_slots = slots, + .m_methods = module_methods }; EXPORTED PyMODINIT_FUNC diff --git a/kitty/data-types.c b/kitty/data-types.c index e615c4005..2e93bfb70 100644 --- a/kitty/data-types.c +++ b/kitty/data-types.c @@ -240,11 +240,11 @@ static PyMethodDef module_methods[] = { static struct PyModuleDef module = { - .m_base = PyModuleDef_HEAD_INIT, - .m_name = "fast_data_types", /* name of module */ - .m_doc = NULL, - .m_size = -1, - .m_methods = module_methods + .m_base = PyModuleDef_HEAD_INIT, + .m_name = "fast_data_types", /* name of module */ + .m_doc = NULL, + .m_size = -1, + .m_methods = module_methods }; diff --git a/kitty/loop-utils.c b/kitty/loop-utils.c index 79527934d..9e4935446 100644 --- a/kitty/loop-utils.c +++ b/kitty/loop-utils.c @@ -104,8 +104,8 @@ free_loop_data(LoopData *ld) { #ifdef HAS_EVENT_FD safe_close(ld->wakeup_read_fd, __FILE__, __LINE__); #endif - ld->wakeup_read_fd = -1; - remove_signal_handlers(ld); + ld->wakeup_read_fd = -1; + remove_signal_handlers(ld); } diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 667266f40..28a768e0a 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -3610,7 +3610,7 @@ You can also create shortcuts to switch to specific :term:`layouts `:: Similarly, to switch back to the previous layout:: - map ctrl+alt+p last_used_layout + map ctrl+alt+p last_used_layout There is also a :ac:`toggle_layout` action that switches to the named layout or back to the previous layout if in the named layout. Useful to temporarily "zoom" diff --git a/prewarm-launcher.c b/prewarm-launcher.c index 50d3ac608..be133da72 100644 --- a/prewarm-launcher.c +++ b/prewarm-launcher.c @@ -166,11 +166,11 @@ safe_write(int fd, void *buf, size_t n) { static bool set_blocking(int fd, bool blocking) { - if (fd < 0) return false; - int flags = fcntl(fd, F_GETFL, 0); - if (flags == -1) return false; - flags = blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK); - return (fcntl(fd, F_SETFL, flags) == 0) ? true : false; + if (fd < 0) return false; + int flags = fcntl(fd, F_GETFL, 0); + if (flags == -1) return false; + flags = blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK); + return (fcntl(fd, F_SETFL, flags) == 0) ? true : false; } static int