aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-03-10 00:26:23 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-03-10 00:26:23 -0500
commit8b8737ea7eab958fe5a9459f02471d6b6efa7021 (patch)
tree89014be4a0b9045fb07926b1fe5e303abf7f2a57
parent708ca4356f4ebdf0af16fed833f2510236bd6f97 (diff)
downloadtextadept-8b8737ea7eab958fe5a9459f02471d6b6efa7021.tar.gz
textadept-8b8737ea7eab958fe5a9459f02471d6b6efa7021.zip
Indicator for highlighted words works in ncurses.
This requires Scinterm hg changeset 40 (7e25b9a35fbd).
-rw-r--r--doc/14_Appendix.md5
-rw-r--r--modules/textadept/editing.lua6
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/14_Appendix.md b/doc/14_Appendix.md
index f335f246..30f1e56d 100644
--- a/doc/14_Appendix.md
+++ b/doc/14_Appendix.md
@@ -121,7 +121,10 @@ features in its editing component Scintilla:
* Extra ascent and decent for lines is not supported.
* Fold lines are not supported (`surface->LineTo()` is not supported).
* Indentation guides are not visible (pixmap surfaces are not supported).
-* Indicators are not displayed (they would be drawn over by text lines).
+* Indicators other than `INDIC_ROUNDBOX` and `INDIC_STRAIGHTBOX` are not drawn
+ (`surface->LineTo()` is not supported for drawing indicator shapes and pixmap
+ surfaces are not supported). Translucent drawing and rounded corners are not
+ supported either.
* Insert mode caret is not drawn properly (no way to detect it from within
`surface->FillRectangle()`).
* Margins are overwritten by long lines when scrolling to the right.
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index f9beab64..6a35539b 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -44,9 +44,9 @@ M.HIGHLIGHT_BRACES = true
M.TYPEOVER_CHARS = true
M.AUTOINDENT = true
M.STRIP_WHITESPACE_ON_SAVE = true
-M.MARK_HIGHLIGHT_BACK = buffer and buffer.caret_line_back or
- (not NCURSES and 0xEEEEEE or 0xFFFF00)
-M.INDIC_HIGHLIGHT_BACK = 0x4D99E6
+M.MARK_HIGHLIGHT_BACK = not NCURSES and (buffer and buffer.caret_line_back or
+ 0xEEEEEE) or 0x00FFFF
+M.INDIC_HIGHLIGHT_BACK = not NCURSES and 0x4D99E6 or 0x00FFFF
M.INDIC_HIGHLIGHT_ALPHA = 100
---