diff --git a/0020-draw_editor_border b/0020-draw_editor_border index 13892b7..8e81fb5 100644 --- a/0020-draw_editor_border +++ b/0020-draw_editor_border @@ -13,8 +13,12 @@ draw_editor_border = function() end love.graphics.setFont(Title_font) local tx1 = Current_pane.editor_state.left - local tx2 = tx1 + App.width(Current_pane.filename) - love.graphics.print(Current_pane.filename, tx1, y1-15+5) + local filename = Current_pane.filename + if Current_pane.editor_state.next_save then + filename = filename..' *' + end + local tx2 = tx1 + App.width(filename) + love.graphics.print(filename, tx1, y1-15+5) love.graphics.setFont(old_font) love.graphics.line(x1,y1, tx1-5,y1) love.graphics.line(math.min(tx2+5,x2), y1, x2,y1)