Revert "💄"

This reverts commit c2c4d03c2d.
This commit is contained in:
Corey Johnson
2013-02-27 10:11:02 -08:00
parent 531946f35c
commit 44680ad50c
4 changed files with 14 additions and 12 deletions

View File

@@ -746,7 +746,7 @@ class Editor extends View
styleTag = $$ -> @style class: 'font-size'
headTag.append styleTag
styleTag.text(".editor {font-size: #{fontSize}pt}")
styleTag.text(".editor {font-size: #{fontSize}px}")
if @isOnDom()
@redraw()
@@ -1362,6 +1362,8 @@ class Editor extends View
lines.push "#{firstRenderedScreenRow + n}: #{$(this).text()}"
lines.join('\n')
logScreenLines: (start, end) ->
@activeEditSession.logScreenLines(start, end)
logRenderedLines: ->
@renderedLines.find('.line').each (n) ->

View File

@@ -47,11 +47,11 @@ class RootView extends View
@setTitle("untitled")
@command 'window:increase-font-size', =>
config.set("editor.fontSize", config.get("editor.fontSize") + 2)
config.set("editor.fontSize", config.get("editor.fontSize") + 1)
@command 'window:decrease-font-size', =>
fontSize = config.get "editor.fontSize"
config.set("editor.fontSize", fontSize - 2) if fontSize > 2
config.set("editor.fontSize", fontSize - 1) if fontSize > 1
@command 'window:focus-next-pane', => @focusNextPane()