Only reset font size if font size has been changed

This commit is contained in:
Machiste Quintana
2015-04-28 05:49:22 -04:00
parent f4b228c908
commit 12b59cf610
2 changed files with 10 additions and 1 deletions

View File

@@ -623,7 +623,8 @@ class Workspace extends Model
# Restore to the window's original editor font size.
resetFontSize: ->
atom.config.set("editor.fontSize", @originalFontSize)
if @originalFontSize
atom.config.set("editor.fontSize", @originalFontSize)
# Removes the item's uri from the list of potential items to reopen.
itemOpened: (item) ->