Bug: Clicking on the buffer at the bottom outside the text area, it will move the text cursor one position back from the end
Bug: Clicking on the buffer at the bottom outside the text area, it will move the text cursor one position back from the end
When clicking with the mouse cursor in an area within the buffer that is both "outside the text" and "below the text," the text cursor should ideally be positioned at the very end of the text. However, in the current implementation of this editor, when reproducing the same operation, the text cursor is instead moved to the position one character before the end of the text. In terminal-based text editors, it is a well-documented phenomenon that past terminal output can create visual artifacts. This bug causes users to mistakenly believe that a similar issue is occurring in this editor. Because this behavior makes the last character displayed on the editor appear as though it does not actually exist, it results in highly problematic behavior when editing files with formats such as JSON, where brackets and other syntax elements are critically important. In other words, there exists a definite risk that users, as a result of this misunderstanding, may inadvertently corrupt the file through their own subsequent actions and edits.
Note:
- This issues is translated by Claude Haiku 4.5.
Source: sinelaw/fresh