repeat bugfix on source editor X-(
This commit is contained in:
parent
d63178244b
commit
1d27d59533
|
@ -299,8 +299,11 @@ function edit.textinput(State, t)
|
||||||
p.name = p.name..t
|
p.name = p.name..t
|
||||||
record_undo_event(State, {before=before, after=snapshot(State, State.lines.current_drawing_index)})
|
record_undo_event(State, {before=before, after=snapshot(State, State.lines.current_drawing_index)})
|
||||||
else
|
else
|
||||||
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll
|
local drawing_index, drawing = Drawing.current_drawing(State)
|
||||||
Text.textinput(State, t)
|
if drawing_index == nil then
|
||||||
|
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll
|
||||||
|
Text.textinput(State, t)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
schedule_save(State)
|
schedule_save(State)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue