about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-26 15:20:55 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-26 15:20:55 -0800
commit18183f3e4b504324952336147222640182c24119 (patch)
tree4c506c6297f786269a3ae62c77488a99cace0502 /src
parentb493ed32b81ea9bbb880e5d50026082ac44ecfb8 (diff)
downloadteliva-18183f3e4b504324952336147222640182c24119.tar.gz
indent
Diffstat (limited to 'src')
-rw-r--r--src/kilo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 83da598..09ef33c 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -1096,17 +1096,17 @@ static void editorGo(lua_State* L) {
             if (qlen != 0) query[--qlen] = '\0';
         } else if (c == CTRL_X || c == ENTER) {
             if (c == ENTER) {
-              save_to_current_definition_and_editor_buffer(L, query);
-              clearEditor();
-              editorOpen("teliva_editor_buffer");
-              attrset(A_NORMAL);
-              clear();
-              draw_callers_of_current_definition(L);
+                save_to_current_definition_and_editor_buffer(L, query);
+                clearEditor();
+                editorOpen("teliva_editor_buffer");
+                attrset(A_NORMAL);
+                clear();
+                draw_callers_of_current_definition(L);
             }
             return;
         } else if (c == CTRL_U) {
-          qlen = 0;
-          query[qlen] = '\0';
+            qlen = 0;
+            query[qlen] = '\0';
         } else if (isprint(c)) {
             if (qlen < CURRENT_DEFINITION_LEN) {
                 query[qlen++] = c;