Ace: cannot highlight last character
joewest-wk opened this issue · comments
joewest-wk commented
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