From 2052c77111051972d8171d27c8d4c501803e70d6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Aug 2013 14:26:24 -0400 Subject: Include Scintilla constants in `buffer`s. --- themes/dark.lua | 11 ++++++----- themes/light.lua | 9 ++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'themes') diff --git a/themes/dark.lua b/themes/dark.lua index b8ed32d5..59d0f950 100644 --- a/themes/dark.lua +++ b/themes/dark.lua @@ -108,11 +108,12 @@ buffer:set_fold_margin_colour(true, property_int['color.black']) buffer:set_fold_margin_hi_colour(true, property_int['color.black']) -- Fold Margin Markers. -local c = _SCINTILLA.constants -buffer.marker_fore[c.SC_MARKNUM_FOLDEROPEN] = property_int['color.dark_grey'] -buffer.marker_back[c.SC_MARKNUM_FOLDEROPEN] = property_int['color.dark_grey'] -buffer.marker_fore[c.SC_MARKNUM_FOLDER] = property_int['color.dark_grey'] -buffer.marker_back[c.SC_MARKNUM_FOLDER] = property_int['color.dark_grey'] +buffer.marker_fore[buffer.SC_MARKNUM_FOLDEROPEN] = + property_int['color.dark_grey'] +buffer.marker_back[buffer.SC_MARKNUM_FOLDEROPEN] = + property_int['color.dark_grey'] +buffer.marker_fore[buffer.SC_MARKNUM_FOLDER] = property_int['color.dark_grey'] +buffer.marker_back[buffer.SC_MARKNUM_FOLDER] = property_int['color.dark_grey'] -- Long Lines. buffer.edge_colour = property_int['color.dark_grey'] diff --git a/themes/light.lua b/themes/light.lua index 3e06e22d..619ef5cf 100644 --- a/themes/light.lua +++ b/themes/light.lua @@ -108,11 +108,10 @@ buffer:set_fold_margin_colour(true, property_int['color.white']) buffer:set_fold_margin_hi_colour(true, property_int['color.white']) -- Fold Margin Markers. -local c = _SCINTILLA.constants -buffer.marker_fore[c.SC_MARKNUM_FOLDEROPEN] = property_int['color.grey'] -buffer.marker_back[c.SC_MARKNUM_FOLDEROPEN] = property_int['color.grey'] -buffer.marker_fore[c.SC_MARKNUM_FOLDER] = property_int['color.grey'] -buffer.marker_back[c.SC_MARKNUM_FOLDER] = property_int['color.grey'] +buffer.marker_fore[buffer.SC_MARKNUM_FOLDEROPEN] = property_int['color.grey'] +buffer.marker_back[buffer.SC_MARKNUM_FOLDEROPEN] = property_int['color.grey'] +buffer.marker_fore[buffer.SC_MARKNUM_FOLDER] = property_int['color.grey'] +buffer.marker_back[buffer.SC_MARKNUM_FOLDER] = property_int['color.grey'] -- Long Lines. buffer.edge_colour = property_int['color.grey'] -- cgit v1.2.3