about summary refs log tree commit diff stats
path: root/source.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-18 01:28:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-18 01:28:05 -0700
commit936d3b4616007916c21fba86fec7a67b9ae72ea2 (patch)
treec1f8c2a9e94fd40b0419eccf49a26e8580f03e90 /source.lua
parent89b30a62efda3aa662826801e3e8d70779996569 (diff)
downloadlines.love-936d3b4616007916c21fba86fec7a67b9ae72ea2.tar.gz
bugfix: disable typing while file navigator is open
Diffstat (limited to 'source.lua')
-rw-r--r--source.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/source.lua b/source.lua
index 13a66cd..c8c83a4 100644
--- a/source.lua
+++ b/source.lua
@@ -307,6 +307,9 @@ end
 
 function source.textinput(t)
   Cursor_time = 0  -- ensure cursor is visible immediately after it moves
+  if Show_file_navigator then
+    return
+  end
   if Focus == 'edit' then
     return edit.textinput(Editor_state, t)
   else