Ticket #2807 (new defect)

Opened 22 months ago

Last modified 6 months ago

pager.c remembers TopLine when it shouldn't

Reported by: tamo@… Owned by: mutt-dev
Priority: minor Milestone: 2.0
Component: mutt Version: 1.5.14
Keywords: #2118 Cc: SHIOZAKI Takehiko <st@…>

Description (last modified by myon) (diff)

Since this change (http://mutt.kublai.com/hg/cvs/rev/b894fd4c9032)
on Sep 08 2005, the builtin pager keeps its position
even on OP_MAIN_NEXT_UNDELETED. So you cannot re-read
the last message from the top of it with <space>.
(See How-To-Repeat)

This must be a side-effect of http://bugs.mutt.org/1210

>How-To-Repeat:
1. :unset pager_stop
2. <change-folder> to a folder which has a long (more
 than a screen-length) message as the last entry.
3. Hit <space> on the last message.
4. Repeat <space> until the message finishes.
5. You will be in index mode (because the message
 is the last entry in the folder).
6. Hit <space> again. You will see the _bottom_ of
 the message, not the top.

>Fix:
Forget TopLine when <next-page> (with $pager_stop)
causes OP_MAIN_NEXT_UNDELETED.
(though Brendan called it "a bogus detection")

Change History

Changed 21 months ago by cb

This is the same as #2118.

Changed 21 months ago by Christoph Berg <cb@…>

FTR, this has also been reported as Debian #334416:

----- Forwarded message from Adeodato Sim=F3 <asp16@alu.ua.es> -----

Date: Mon, 17 Oct 2005 20:46:31 +0200
From: Adeodato Sim=F3 <asp16@alu.ua.es>
Reply-To: Adeodato Sim=F3 <asp16@alu.ua.es>, 334416@bugs.debian.org
To: submit@bugs.debian.org
Subject: Bug#334416: mutt: last message in mailbox gets scrolled until bo=
ttom on second viewing

Package: mutt
Version: 1.5.11-2

20:32 <Md> ping
20:33 <dato> pong
20:33 <Md> the latest mutt package has an annoying bug
20:33 <Md> to reproduce it, mark as deleted the last message of a mailbox
20:34 <Md> press the spacebar until the end and then again to go back to =
the menu
20:34 <Md> now, if you will press enter or the spacebar the pager will be=
 positioned at the end of the
           message instead of at the top
20:34 <Md> I am sure that this did not happen before the upgrade
20:38 <dato> I see. no need to mark as deleted, even.
20:42 <dato> I can quote this conversation, yes?
20:42 <Md> sure

--=20
Adeodato Sim=F3
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
=20
Kindness is a language which the deaf can hear and the blind can read.
                -- Mark Twain

----- End forwarded message -----

Christoph
--=20
cb@df7cb.de | http://www.df7cb.de/

Changed 6 months ago by myon

  • priority changed from trivial to minor
  • description modified (diff)
  • milestone set to 2.0

There's more instances of this problem:

From: Michael Gurski <debianbugs@…> To: Debian Bug Tracking System <submit@…> Subject: mutt: Weird scroll on next message to current message's scroll amount

behavior

Date: Fri, 28 Jul 2006 12:24:03 -0400

Package: mutt Version: 1.5.12-1 Severity: minor

I've noticed a really weird scrolling behavior with mutt periodically. What happens is I'll be reading a long message, such as a logcheck report, tab to the next message while partway scrolled through the current one, and mutt will read the next message and immediately scroll the same amount down in the new message.

The even weirder part is that this will also happens if the initial message that I've scrolled down on is in one mail folder as the last message, and I go to a new folder to read a new message there.

Not having looked in the sources, I can only guess how mutt's pager for messages is implemented, but this almost sounds like a variable representing position in the current message isn't being reset before opening the new message.

All in all, a fairly minor annoyance, but since I've hit it a few times today, I figured I should at least report it.

From: Dan Jacobson <jidanni@…> Subject: mutt: wasteful resending of whole last message to the screen Date: Sat, 02 Jun 2007 05:19:19 +0800

Package: mutt Version: 1.5.13-3 Severity: wishlist

On the last message in ones mailbox, page thru it with spacebar, and just keep hitting spacebar even after you reach the end.

Notice how the message is replayed for you leaving your on the last page, but with the whole message first uselessly sent to your terminal in the process.

keep hitting spacebar and it happens again...

Note: See TracTickets for help on using tickets.