mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Fix reset-font-size
If the user config is yet to be loaded oldValue equals the default font-size 14px. Fetching the font-size from the config object seems to fix the issue.
This commit is contained in:
@@ -1543,9 +1543,9 @@ module.exports = class Workspace extends Model {
|
||||
}
|
||||
|
||||
subscribeToFontSize () {
|
||||
return this.config.onDidChange('editor.fontSize', ({oldValue}) => {
|
||||
return this.config.onDidChange('editor.fontSize', () => {
|
||||
if (this.originalFontSize == null) {
|
||||
this.originalFontSize = oldValue
|
||||
this.originalFontSize = this.config.get('editor.fontSize')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user