diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-07-25 10:24:09 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-07-25 10:24:09 -0400 |
commit | 8fd378c09636e3c9a2275dcd1b9195a21a38e5de (patch) | |
tree | a54508d4df6723a11b7c212709f0cc032765976c /init.lua | |
parent | c8074b47b7826d7018f4984fa1de1d0f6d19e83d (diff) |
Moved word highlighting back into editing module and disable by default.
Also fixed `HIGHLIGHT_SELECTED` behavior with non-word selections.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -265,8 +265,9 @@ if not CURSES then view.indic_under[ui.find.INDIC_FIND] = true end local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH view.indic_style[INDIC_BRACEMATCH] = view.INDIC_BOX view:brace_highlight_indicator(not CURSES, INDIC_BRACEMATCH) -view.indic_style[ui.INDIC_HIGHLIGHT] = view.INDIC_ROUNDBOX -if not CURSES then view.indic_under[ui.INDIC_HIGHLIGHT] = true end +local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT +view.indic_style[INDIC_HIGHLIGHT] = view.INDIC_ROUNDBOX +if not CURSES then view.indic_under[INDIC_HIGHLIGHT] = true end local INDIC_PLACEHOLDER = textadept.snippets.INDIC_PLACEHOLDER view.indic_style[INDIC_PLACEHOLDER] = not CURSES and view.INDIC_DOTBOX or view.INDIC_STRAIGHTBOX |