about summary refs log tree commit diff stats
path: root/source_edit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'source_edit.lua')
-rw-r--r--source_edit.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/source_edit.lua b/source_edit.lua
index f340ab3..5c90075 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -405,8 +405,10 @@ function edit.keychord_press(State, chord, key)
     edit.update_font_settings(State, State.font_height+2)
     Text.redraw_all(State)
   elseif chord == 'C--' then
-    edit.update_font_settings(State, State.font_height-2)
-    Text.redraw_all(State)
+    if State.font_height > 2 then
+      edit.update_font_settings(State, State.font_height-2)
+      Text.redraw_all(State)
+    end
   elseif chord == 'C-0' then
     edit.update_font_settings(State, 20)
     Text.redraw_all(State)