diff options
author | 2013-04-03 16:56:14 -0400 | |
---|---|---|
committer | 2013-04-03 16:56:14 -0400 | |
commit | 679e188ec027978b37eb36a5f2d52bc2cf04ef77 (patch) | |
tree | 61da33e31c8f6f02fcc5fd53e406368635d5df43 /modules/textadept/editing.lua | |
parent | 00153ab1c0f7307a8589c7d0cc0a3908cb7f0c34 (diff) | |
download | textadept-679e188ec027978b37eb36a5f2d52bc2cf04ef77.tar.gz textadept-679e188ec027978b37eb36a5f2d52bc2cf04ef77.zip |
Textadept should support multiple curses platforms; remove ncurses references.
Requires Scintilla r4436 and Scinterm r45.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r-- | modules/textadept/editing.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 6a35539b..8957836f 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 = not NCURSES and (buffer and buffer.caret_line_back or - 0xEEEEEE) or 0x00FFFF -M.INDIC_HIGHLIGHT_BACK = not NCURSES and 0x4D99E6 or 0x00FFFF +M.MARK_HIGHLIGHT_BACK = not CURSES and (buffer and buffer.caret_line_back or + 0xEEEEEE) or 0x00FFFF +M.INDIC_HIGHLIGHT_BACK = not CURSES and 0x4D99E6 or 0x00FFFF M.INDIC_HIGHLIGHT_ALPHA = 100 --- @@ -543,11 +543,11 @@ function M.highlight_word() buffer:set_sel(s, e) end -local NCURSES_MARK = _SCINTILLA.constants.SC_MARK_CHARACTER + string.byte(' ') +local CURSES_MARK = _SCINTILLA.constants.SC_MARK_CHARACTER + string.byte(' ') -- Sets view properties for highlighted word indicators and markers. local function set_highlight_properties() local buffer = buffer - if NCURSES then buffer:marker_define(MARK_HIGHLIGHT, NCURSES_MARK) end + if CURSES then buffer:marker_define(MARK_HIGHLIGHT, CURSES_MARK) end buffer.marker_back[MARK_HIGHLIGHT] = M.MARK_HIGHLIGHT_BACK buffer.indic_fore[INDIC_HIGHLIGHT] = M.INDIC_HIGHLIGHT_BACK buffer.indic_style[INDIC_HIGHLIGHT] = _SCINTILLA.constants.INDIC_ROUNDBOX |