]> git.notmuchmail.org Git - sup/commitdiff
fixed cursor issue and slightly better error message for messages from broken sources
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 2 Apr 2007 01:16:14 +0000 (01:16 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 2 Apr 2007 01:16:14 +0000 (01:16 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@365 5c8cc53c-5e98-4d25-b20a-d8db53a31250

doc/TODO
lib/sup/message.rb
lib/sup/modes/line-cursor-mode.rb

index 7888df71e8ee68af1e9a4a4942aa713eb581d4d8..dded681b2b98d6fe7f9d8b132904cb3b2b106b9d 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -1,12 +1,8 @@
 for 0.0.8
 ---------
 _ nice little startup config program
-_ bugfix: when one new message comes into an imap folder, we don't
-   catch it until a reload
-_ bugfix: triggering a pageup when cursor scrolling up jumps to the
+x bugfix: triggering a pageup when cursor scrolling up jumps to the
    bottom of the page rather than the next line
-_ bugfix: add new message counts until keypress
-_ bugfix: attachment filenames sometimes not detected (filename=)
 x bugfix: final logging messages to stdout?
 x bugfix: mbox directory shouldn't generate an exception, just an error
 x bugfix: m in thread-view-mode when a person is not selected should open up a
@@ -22,6 +18,10 @@ x bugfix: single-line messages come empty upon reply
 
 next release
 ------------
+_ bugfix: when one new message comes into an imap folder, we don't
+   catch it until a reload (sometimes?)
+_ bugfix: add new message counts until keypress
+_ bugfix: attachment filenames sometimes not detected (filename=)
 _ split out threading & message chunk parsing to a separate library
 
 near future
index 26bd428d0e6b9e7dbf0e6796e6e03c29207e5b23..13f9377b23a99bb2a991ba447a4938d03256a615 100644 (file)
@@ -205,7 +205,11 @@ class Message
 ***********************************************************************
  An error occurred while loading this message. It is possible that
  the source has changed, or (in the case of remote sources) is down.
- The message source and offset are: #@source##@source_info
+ You can check the log for errors, though hopefully an error window
+ should have popped up at some point.
+
+ The message location was:
+ #@source##@source_info
 ***********************************************************************
 
 The error message was:
index 5efefae896e1178bb3d08ade28b910a54d28e360..1405a782f4cbeed7019018237aa4e0663ec8d18b 100644 (file)
@@ -61,7 +61,7 @@ protected
     return false unless @curpos < lines - 1
     if @curpos >= botline - 1
       page_down
-      set_cursor_pos [topline + 1, botline].min
+      set_cursor_pos topline
     else
       @curpos += 1
       unless buffer.dirty?
@@ -77,8 +77,9 @@ protected
   def cursor_up
     return false unless @curpos > @cursor_top
     if @curpos == topline
+      old_topline = topline
       page_up
-      set_cursor_pos [botline - 2, topline].max
+      set_cursor_pos [old_topline - 1, topline].max
     else
       @curpos -= 1
       unless buffer.dirty?