about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-17 20:08:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-17 20:08:18 -0700
commit0fb98d2ac9e35cde15a08f0fec3c7e99700325f3 (patch)
treebacab0c9a000b75db0ac4175178e6cf5b25ba8de /main.lua
parent856c51212ab369c613e10c410af3c1f3bab27258 (diff)
downloadtext.love-0fb98d2ac9e35cde15a08f0fec3c7e99700325f3.tar.gz
indent
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.lua b/main.lua
index 5f4f2d1..6e0272f 100644
--- a/main.lua
+++ b/main.lua
@@ -239,11 +239,11 @@ function App.draw()
                        schedule_save()
                        record_undo_event({before=Drawing.before, after=snapshot(line_index-1, line_index+1)})
                      end})
-          if Search_term == nil then
-            if line_index == Cursor1.line then
-              Text.draw_cursor(Margin_left, y)
-            end
+        if Search_term == nil then
+          if line_index == Cursor1.line then
+            Text.draw_cursor(Margin_left, y)
           end
+        end
         Screen_bottom1.pos = Screen_top1.pos
         y = y + Line_height
       elseif line.mode == 'drawing' then