lib/vedeu/editor/document.rb in vedeu-0.6.46 vs lib/vedeu/editor/document.rb in vedeu-0.6.47
- old
+ new
@@ -58,15 +58,19 @@
bol
elsif x - 1 < 0 && y > 0
delete_line
+ return
+
else
@lines = lines.delete_character(y, x - 1)
left
end
+
+ refresh
end
# Delete a line.
#
# @return [Vedeu::Editor::Document]