Using spell check suggestion deletes some punctuation marks

Steps to reproduce

Have a misspelled word next to punctuation. Select one of the spell checker’s suggestion to correct the spelling error.

EXAMPLE: The quick brown fox jumped over the lazy dgo.

In this example, right click on “dgo” and select “dog”.

Expected result

The expected result is: The quick brown fox jumped over the lazy dog.

Actual result

The period at the end of the sentence gets deleted. I tested this with other punctuation marks (comma, semicolon, question mark, hyphen, and parenthesis) and it does the same thing.

The bug does not occur with colons, exclamation marks, square brackets, or quotation marks.

Environment

  • Operating system: Windows 10 Version 2004
  • Obsidian version: 0.8.9
6 Likes

I’m also experiencing this bug.
MacOS 10.15.6
Obsidian 0.8.14

understnd? becomes understand after spell check.

I also noticed this.

MacOS: 10.15.6
Obsidian: 0.8.15

Discovered today that this bug will also delete text when it involves a hyphenated word.

spellcheck-bug

MacOS 10.15.6
Obsidian 0.9.0

This also happens with words after a hyphen in a hashtag, but doesn’t delete the # itself
#seven-yaers would become #years upon spellcheck selection.

Also noted, for me when adding a word to the dictionary inside parentheses. E.g. (dgo), if right click and “add to dictionary” results in (dgo

Mac 10.15.7 and Obsidian 0.9.1.

Noticed this happens with commas (,) as well. shoost, then leaves when corrected will become shoots then leaves
MacOS 10.15.6 (19G2021)
Obsidian 0.9.2

I was just about to report the same. This still occurs in version 0.9.6

Still happening in 0.9.10. I use Windows 10.

Steps to reproduce

  1. Type the following in the note:
Comma tet,
Full stop tet.
Exclamation tet!
Question tet?
  1. Right click on the wrong word (tet) for correction.

  2. Pick either one from the drop-down menu.

Expected result

Only the word gets corrected and the trailing punctual mark would stay.

Actual result

The trailing punctual mark is gone.

Environment

  • Operating system: Windows 10 (10.0.19042 Build 19042)

  • Obsidian version: v0.9.10


Additional information

Gif

As you can see, comma, full stop and question mark are affected. But exclamation mark is not.

2 Likes

Will be fixed in 0.9.18

1 Like