parent
d65b7950a1
commit
81ebc6a559
2
edit.lua
2
edit.lua
|
@ -368,8 +368,10 @@ function edit.keychord_press(State, chord, key)
|
||||||
edit.update_font_settings(State, State.font_height+2)
|
edit.update_font_settings(State, State.font_height+2)
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
elseif chord == 'C--' then
|
elseif chord == 'C--' then
|
||||||
|
if State.font_height > 2 then
|
||||||
edit.update_font_settings(State, State.font_height-2)
|
edit.update_font_settings(State, State.font_height-2)
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
|
end
|
||||||
elseif chord == 'C-0' then
|
elseif chord == 'C-0' then
|
||||||
edit.update_font_settings(State, 20)
|
edit.update_font_settings(State, 20)
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
|
|
|
@ -405,8 +405,10 @@ function edit.keychord_press(State, chord, key)
|
||||||
edit.update_font_settings(State, State.font_height+2)
|
edit.update_font_settings(State, State.font_height+2)
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
elseif chord == 'C--' then
|
elseif chord == 'C--' then
|
||||||
|
if State.font_height > 2 then
|
||||||
edit.update_font_settings(State, State.font_height-2)
|
edit.update_font_settings(State, State.font_height-2)
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
|
end
|
||||||
elseif chord == 'C-0' then
|
elseif chord == 'C-0' then
|
||||||
edit.update_font_settings(State, 20)
|
edit.update_font_settings(State, 20)
|
||||||
Text.redraw_all(State)
|
Text.redraw_all(State)
|
||||||
|
|
Loading…
Reference in New Issue