Don't defer update of cursor position in status bar

We have to update it eventually, so it just adds complexity to delay it and we'll still pay a price during an extended burst of typing once the timer does fire.
This commit is contained in:
Nathan Sobo
2012-11-05 14:27:45 -07:00
parent 3b213e2960
commit 8cd79dae49

View File

@@ -35,7 +35,7 @@ class StatusBar extends View
@updatePathText()
@updateCursorPositionText()
@editor.on 'cursor-move', => _.delay (=> @updateCursorPositionText()), 50
@editor.on 'cursor-move', => @updateCursorPositionText()
@subscribeToBuffer()