From 8b8737ea7eab958fe5a9459f02471d6b6efa7021 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 10 Mar 2013 00:26:23 -0500 Subject: Indicator for highlighted words works in ncurses. This requires Scinterm hg changeset 40 (7e25b9a35fbd). --- doc/14_Appendix.md | 5 ++++- modules/textadept/editing.lua | 6 +++--- 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 --- -- cgit v1.2.3