Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phantom text left behind after deleting an entire line #80

Open
stephen-huan opened this issue Dec 29, 2024 · 0 comments
Open

Phantom text left behind after deleting an entire line #80

stephen-huan opened this issue Dec 29, 2024 · 0 comments

Comments

@stephen-huan
Copy link

stephen-huan commented Dec 29, 2024

Easiest to replicate with a "large" document, I'll provide a concrete example later. Add a \newpage and start typing a line, say, "hello world". Delete the "world" (in neovim, with diw, say) and it updates as expected. But delete the entire line with dd and "hello world" will still be shown in the viewer. Spaces, tabs, and newlines can be added without updating the text shown in the viewer. But as soon as an alphabetical character is added, the viewer updates instantly to that character. Alternatively, scrolling the cursor to the \newpage will update the viewer to the previous page.

The smallest document I could find which exhibits this behavior is as follows. I don't think the particular imports are important. If you can't replicate with this document, try a larger one with more package imports, it seems to help.

\documentclass[11pt, oneside]{article}
\usepackage{fontspec}
\usepackage[english]{babel}
\usepackage[babel=true]{microtype}
\usepackage{geometry}
\usepackage{hyperref}
\geometry{a4paper}

\begin{document}
\maketitle

\newpage

hello world

\end{document}

The smaller document doesn't exhibit the issue. Instead, deleting the line "hello world" instantly updates the viewer to the title page (make sure to wait a bit and deleting "world" updates before deleting the line to avoid issues like #79).

\documentclass{article}

\begin{document}
\maketitle

\newpage

hello world

\end{document}

System information

texpresso: 0e14b1d
texpresso.vim: let-def/texpresso.vim@1cc949f
neovim v0.10.2
Linux 6.6.66, NixOS 25.05 (Warbler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant