]> git.neil.brown.name Git - edlib.git/commit
notmuch: keep point nearby when returning from whole-thread
authorNeilBrown <neil@brown.name>
Sun, 18 Sep 2022 02:35:21 +0000 (12:35 +1000)
committerNeilBrown <neil@brown.name>
Sun, 18 Sep 2022 02:35:21 +0000 (12:35 +1000)
commitf0acb3c2ce31b4a1c42ab2712ff1f856149b36c1
tree61053475cbc856e1740c111c09a4c1e30dbe77bc
parent6795cd21d44c30a10c15920d4f99adedba9f23fa
notmuch: keep point nearby when returning from whole-thread

If, while viewing a whole thread, point is moved to EOF, then when we
switch back we don't want it to stay at EOF, we want it to be at
thread_end, or similar.
So we need to clip anything after thread_end upwards.

Clip doesn't move marks *at* the end point, so we need to make our eof
look just a little bit different temporarily.

Signed-off-by: NeilBrown <neil@brown.name>
python/module-notmuch.py