Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor jump to somewhere #2013

Closed
1 task done
ChungZH opened this issue Mar 28, 2020 · 4 comments · Fixed by #2885
Closed
1 task done

Cursor jump to somewhere #2013

ChungZH opened this issue Mar 28, 2020 · 4 comments · Fixed by #2885
Assignees
Labels
🐛 bug Something isn't working :octocat: code block issues about code block

Comments

@ChungZH
Copy link
Contributor

ChungZH commented Mar 28, 2020

Description

When I type in a code block, the cursor jumps to somewhere.

  • Can you reproduce the issue?

Steps to reproduce

  1. Insert a code block
  2. Type something...
  3. At last cursor jump to somewhere

Expected behavior:

Normal

Actual behavior:

Jump and jump.

Link to an example: [optional]

mt.gif

Versions

  • Mark Text: 0.16.0-rc3
  • Operating system: Windows 10
@fxha
Copy link
Contributor

fxha commented Jun 7, 2020

Thank you for taking the time to report this issue. We cannot reproduce this issue, could you please provide some steps how the error occurred or provide a file.

@ChungZH
Copy link
Contributor Author

ChungZH commented Jun 7, 2020

  1. Use monospace font with programming ligatures (I use Fira Code)
  2. Input ... or some other characters, can trigger the ligature of the font
  3. Delete them

@YalandHong
Copy link

As far as I know (#2428 (comment)) (#2802 (comment)), this bug is more likely to occur when you delete a certain line in a code block.

@YalandHong
Copy link

#2013 and #2306 still exist in 0.17.0. I'm using Ubuntu 20.04. There're two major problems within code block:

  1. MarkText automatically adds or deletes trailing empty lines.
  2. Cursor jumps to a random position after deleting a whole line.
Kazam_screencast_00004.mp4
random_cursor_jump.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working :octocat: code block issues about code block
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants