You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ernie Rael (Jira)" <ji...@apache.org> on 2020/11/03 16:56:00 UTC
[jira] [Commented] (NETBEANS-4940) Caret drawing problems over a
TAB
[ https://issues.apache.org/jira/browse/NETBEANS-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225552#comment-17225552 ]
Ernie Rael commented on NETBEANS-4940:
--------------------------------------
editor.lib2's EditorCaret exhibits this problem. This issue was filed after seeing a plugin, using the editor.lib BaseCaret. There is considerable discussion about this issue in the PR #2482
EditorCaret is now the default caret, BaseCaret is no longer used expect by 3rd party plugins. EditorCaret has both single caret and multi-caret and they both exhibit this problem.
Switching to multi-caret modes happens by choosing multiple positions by clicking on new positions while CTRL+Shift is held down.
To see the multi-caret problem you can do
# Starting with a clean userdir/cachedir, start up NetBeans
# in Editor>Formatting>AllLang,Tabs... turn off EnableIndent & ExpandTabtoSpaces, set NumSpacePerIndent to 8 (to match tab size)
# NewFile>Other>EmptyFile.
# I added a line full of regular chars, two lines of just TABs, then a line of regular chars.
# Place caret on a TAB in second line, add a second caret on regular char in last line.
# Hit the right arrow.
# Observe the rendering artifacts over the TAB.
> Caret drawing problems over a TAB
> ---------------------------------
>
> Key: NETBEANS-4940
> URL: https://issues.apache.org/jira/browse/NETBEANS-4940
> Project: NetBeans
> Issue Type: Bug
> Components: editor - Other
> Affects Versions: 12.1
> Reporter: Ernie Rael
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 3h 50m
> Remaining Estimate: 0h
>
> To recreate.
> # Open a file in the editor (emptyfile, java file,...)
> # Insert a tab into the file
> # Place the caret over the tab
> Observe the caret as it blinks and notice that it only partially blanks. There is a vertical artifact.
> The jVi application uses a block caret (rather than a vertical line) and the problem is more more pronounced.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists