careteditor / issues

Caret issues
https://caret.io
326 stars 12 forks source link

Cursor position incorrect in table with inline code #846

Open klanchman opened 5 years ago

klanchman commented 5 years ago

When making a table that has a cell with inline code, the cursor position becomes incorrect for the rest of that row.

For example, using this table

|Stuff      |Things       |Others     |
|-----------|-------------|-----------|
|test string|`test string`|test string|
|fine       |fine         |fine       |

causes everything in the first row in the body from column 2 onwards to be incorrect.

In this screenshot

screen shot 2018-12-04 at 3 07 44 pm

the cursor is in an odd location. Typing here would insert a letter after the "r".

Environment

Caret version: 4.0.0-rc22 OS version: macOS Mojave 10.14.1 (18B75)

Font Settings:

font: system-ui
fontSize: 15
codeFont: "SF Mono"
codeFontSize: 13 
astoilkov commented 5 years ago

Hi Kyle,

We replicated the problem. The next major release includes a fix for this. We will write here when we release it.

Thanks for reporting.

carinelaine commented 5 years ago

Hi Kyle,

We replicated the problem. The next major release includes a fix for this. We will write here when we release it.

Thanks for reporting.

Hi Antonio,

What's the ETA for this fix to be released? I work with tables a lot and this bug is a huge hinderance for me. Any way you can push it before the next major release?

Thanks

astoilkov commented 5 years ago

Hi,

It will take probably one to two months to release the new version. However, I can make an update that includes the fix. I put this into my list of tasks so expect it soon.

alterae commented 3 years ago

A similar issue also happens with other formatting in tables as of the time I'm writing this.

Specifically, bold and italicized text cause incorrect cursor and highlight positions in when used in tables.

image

For example, in this table, the cursor is actually positioned at the very end of the line, but appears to be at the end of the bolded text.

astoilkov commented 3 years ago

@Alterae This is a bug, thanks. In our new product — Nota — the issue is fixed. If you are on macOS, you can request an invite and we will send you a download link. You can read more about it here.