issues icon indicating copy to clipboard operation
issues copied to clipboard

Cursor position incorrect in table with inline code

Open klanchman opened this issue 6 years ago • 5 comments

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 

klanchman avatar Dec 04 '18 20:12 klanchman

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.

astoilkov avatar Dec 05 '18 08:12 astoilkov

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

carinelaine avatar Jan 12 '19 21:01 carinelaine

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.

astoilkov avatar Jan 16 '19 11:01 astoilkov

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.

alterae avatar Apr 10 '21 22:04 alterae

@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.

astoilkov avatar Apr 12 '21 09:04 astoilkov