[autocomplete] 19/143: Improved Mark Occurrences highlight behavior (painted underneath selection, doesn't "absorb" chars typed at end of highlight). Also made several Javadoc improvements.
Benjamin Mesing
ben at alioth.debian.org
Sat Oct 19 12:53:10 UTC 2013
This is an automated email from the git hooks/post-receive script.
ben pushed a commit to branch master
in repository autocomplete.
commit 1771db7af085eb47411248dd7e996443a93fa41e
Author: bobbylight <robert at fifesoft.com>
Date: Sun Apr 26 15:09:45 2009 +0000
Improved Mark Occurrences highlight behavior (painted underneath selection, doesn't "absorb" chars typed at end of highlight). Also made several Javadoc improvements.
---
src/org/fife/ui/autocomplete/OutlineHighlightPainter.java | 2 +-
.../ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/org/fife/ui/autocomplete/OutlineHighlightPainter.java b/src/org/fife/ui/autocomplete/OutlineHighlightPainter.java
index b9a2cb1..6a95a7f 100644
--- a/src/org/fife/ui/autocomplete/OutlineHighlightPainter.java
+++ b/src/org/fife/ui/autocomplete/OutlineHighlightPainter.java
@@ -22,7 +22,7 @@ import javax.swing.text.View;
* NOTE: Whenever you see text like "Workaround for Java Highlight issues",
* this is because highlighted text in a JTextComponent gets "pushed" forward
* when the caret is at the Highlight's start, when we need it to instead get
- * prepended to. For this reason, the autocomplete package adds its Highlights
+ * prepended to. For this reason, the auto-complete package adds its Highlights
* 1 char too long (1 char earlier than where it should really start), but only
* paint the Highlight from the 2nd char on.
*/
diff --git a/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java b/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java
index 575381b..f4cd164 100644
--- a/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java
+++ b/src/org/fife/ui/autocomplete/ParameterizedCompletionDescriptionToolTip.java
@@ -317,7 +317,7 @@ class ParameterizedCompletionDescriptionToolTip {
Highlight[] highlights = h.getHighlights();
for (int i=0; i<highlights.length; i++) {
Highlight hl = highlights[i];
- if (hl.getPainter()==p) { // Only way to identify our own higlights
+ if (hl.getPainter()==p) { // Only way to identify our own highlights
if (currentPrev==null || currentPrev.getStartOffset()>=dot ||
(hl.getStartOffset()<selStart &&
hl.getStartOffset()>currentPrev.getStartOffset())) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/autocomplete.git
More information about the pkg-java-commits
mailing list