Steps to reproduce
Create a file like this:
a
b
c is an extremely long line that is long enough to wrap onto multiple lines even though it does not contain a line break character
d
Put your cursor on b and press your delete line hotkey (e.g. cmd+D)
Notice the cursor goes to line c (i.e. the line below the deleted line)
Press your delete line hotkey
Notice the cursor goes to line a (i.e. the line above the deleted line)
Expected result
The cursor should go to the line below the deleted line in every case.
Actual result
The cursor goes to the line below the deleted line when a short line is deleted and to the line above the deleted line when a wrapped line is deleted.
This makes deleting lots of lines of varying length very unpredictable.
Environment
- Operating system: osx
- Debug info:
SYSTEM INFO:
Obsidian version: v1.0.3
Installer version: v0.15.9
Operating system: Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 20.3.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 2
Plugins enabled: 2
1: Editor Syntax Highlight v0.1.2
2: CodeMirror Options v0.6.0
Additional information
None