about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-18 10:09:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-18 10:09:20 -0700
commit3c043105034e5f0d2df7fd01bc04abb11ad277fb (patch)
treee8758408321ddc0fcf1a5b92a197400a68d6196a /edit.lua
parenta14f1096b6b11940bd677000eb41bc8ba6e9b559 (diff)
downloadtext.love-3c043105034e5f0d2df7fd01bc04abb11ad277fb.tar.gz
subsection headings in a long switch
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua
index a0293ab..011f6b9 100644
--- a/edit.lua
+++ b/edit.lua
@@ -338,6 +338,7 @@ function edit.keychord_pressed(State, chord, key)
     State.search_term = ''
     State.search_backup = {cursor={line=State.cursor1.line, pos=State.cursor1.pos}, screen_top={line=State.screen_top1.line, pos=State.screen_top1.pos}}
     assert(State.search_text == nil)
+  -- zoom
   elseif chord == 'C-=' then
     edit.update_font_settings(State, State.font_height+2)
     Text.redraw_all(State)
@@ -347,6 +348,7 @@ function edit.keychord_pressed(State, chord, key)
   elseif chord == 'C-0' then
     edit.update_font_settings(State, 20)
     Text.redraw_all(State)
+  -- undo
   elseif chord == 'C-z' then
     for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end  -- just in case we scroll
     local event = undo_event(State)