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

Ace: cannot highlight last character #5503

Open
joewest-wk opened this issue Mar 12, 2024 · 0 comments
Open

Ace: cannot highlight last character #5503

joewest-wk opened this issue Mar 12, 2024 · 0 comments

Comments

@joewest-wk
Copy link

Describe the bug

In an ace editor with wrap mode enabled, if a break occurs on a long line with a special character, the last character before the break cannot be highlighted.

Expected Behavior

The last character can be highlighted.

Current Behavior

The last character could not be highlighted.

Reproduction Steps

JS

var editor = ace.edit("editor");
editor.getSession().setUseWrapMode(true);

HTML

<div id="editor" style="width:300px;height:300px">
  This is a long string where word-wrap has been enabled
</div>

The editor should break between "word" and "wrap". Try to highlight the letter 'd' in "word" with your mouse.

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

1.32.7 / Chrome / MacOS / QWERTY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants