Re: drawing highlighting
"corvid" <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <20130119164604.GA29627@local> |
For highlighting in a single word: _______________________________________________ Dillo-dev mailing list [email protected] http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
single_word_highlighting.diff
(text/plain, 562 B)
diff -r 35fb41bd0cdb dw/selection.cc
--- a/dw/selection.cc Wed Jan 09 16:40:25 2013 +0000
+++ b/dw/selection.cc Wed Jan 09 17:49:01 2013 +0000
@@ -283,7 +283,8 @@
if (cmpOld == 0 || cmpNew == 0) {
// Either before, or now, the limits differ only by the character
// position.
- bruteHighlighting = true;
+ if (toChar != newToChar)
+ bruteHighlighting = true;
} else if (cmpOld * cmpNew < 0) {
// The selection order has changed, i.e. the user moved the selection
// end again beyond the position he started.