commit 9b50f038502d4d005b02230d69daae322f2e4422
parent 79785b2955277c520e37bf0488c01d32cfc7ea33
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Sat, 23 Jan 2010 19:17:17 -0800
dont check thread-index-mode dirtiness on every keypress
Now that changes are instantly written to the index it's unnecessary to put the
"modified" message in the status line. Removing this cuts the time for a simple
action like moving the cursor by 75% or more, depending on the number of
messages loaded.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -651,7 +651,7 @@ EOS
if (l = lines) == 0
"line 0 of 0"
else
- "line #{curpos + 1} of #{l} #{dirty? ? '*modified*' : ''}"
+ "line #{curpos + 1} of #{l}"
end
end