Alternate screen does not clear trigger marks
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.5.0beta18
- OS version: Sonoma 14.2.1
- Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window) - Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
-
Use moar to display a file with text triggering annotation trigger
-
advance to next page, trigger is still displayed even though lacking trigger string:
This can also be triggered using 'less' to trigger the annotation and then pressing 'k' to scroll up one line, as seen here:
What happened
Annotation continues display. Orange line going to the annotation text also continues to display (without the annotation when the alternate screen is used again (for example, rerunning moar). This also happens with the more common 'less' command, but oddly enough only when paging backwards in the file after triggering the annotation.
What should have happened
The annotation should be fully cleared when the text is scrolled.