From 8cd79dae4920782d08c0270a5ac1bbf9d348951e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 5 Nov 2012 14:27:45 -0700 Subject: [PATCH] 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. --- src/app/status-bar.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/status-bar.coffee b/src/app/status-bar.coffee index 8a11e3b3e..7bc99b41a 100644 --- a/src/app/status-bar.coffee +++ b/src/app/status-bar.coffee @@ -35,7 +35,7 @@ class StatusBar extends View @updatePathText() @updateCursorPositionText() - @editor.on 'cursor-move', => _.delay (=> @updateCursorPositionText()), 50 + @editor.on 'cursor-move', => @updateCursorPositionText() @subscribeToBuffer()