davisriedel / obsidian-typewriter-mode

Typewriter Mode is a plugin that adds typewriter scrolling (current line stays at a fixed position on the screen), a highlight for the current line, dimming of unfocused paragraphs and more to Obsidian.
MIT License
74 stars 2 forks source link

Selecting lines with cursor break the highlighted line #77

Closed Arshia-r-m closed 1 month ago

Arshia-r-m commented 2 months ago

As I select a line with cursor, the highlighted line takes a wrong as active line, image

Arshia-r-m commented 2 months ago

Here is a short video for better understanding, I'm using latest version on debian machine Screencast from 2024-08-26 16-19-17.webm

Arshia-r-m commented 2 months ago

What is this link and how can it help me?

davisriedel commented 1 month ago

This should be fixed in the latest commit. As discussed in #80 I have rewritten the algorithm that detects the caret position. Please feel free to open another issue if the problem persists.