aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:37:08 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:37:08 -0400
commit940732342827ebe0d3bb98740419f621f9c77391 (patch)
tree32a3a6ac703429ca036e73c5215bac4f87b0818f /themes
parent52b0ec63792b3023b4ab42e42d2ce1e1fcb813bc (diff)
Switched to 1-based indices for buffer positions, lines, and countable entities.
Diffstat (limited to 'themes')
-rw-r--r--themes/dark.lua2
-rw-r--r--themes/light.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/themes/dark.lua b/themes/dark.lua
index 1471fe90..d46655d5 100644
--- a/themes/dark.lua
+++ b/themes/dark.lua
@@ -113,7 +113,7 @@ buffer.marker_back[MARK_BOOKMARK] = property_int['color.dark_blue']
buffer.marker_back[textadept.run.MARK_WARNING] = property_int['color.yellow']
--buffer.marker_fore[textadept.run.MARK_ERROR] = property_int['color.black']
buffer.marker_back[textadept.run.MARK_ERROR] = property_int['color.red']
-for i = 25, 31 do -- fold margin markers
+for i = buffer.MARKNUM_FOLDEREND, buffer.MARKNUM_FOLDEROPEN do -- fold margin
buffer.marker_fore[i] = property_int['color.black']
buffer.marker_back[i] = property_int['color.dark_grey']
buffer.marker_back_selected[i] = property_int['color.light_grey']
diff --git a/themes/light.lua b/themes/light.lua
index aab37c73..48c3912a 100644
--- a/themes/light.lua
+++ b/themes/light.lua
@@ -113,7 +113,7 @@ buffer.marker_back[MARK_BOOKMARK] = property_int['color.dark_blue']
buffer.marker_back[t_run.MARK_WARNING] = property_int['color.light_yellow']
--buffer.marker_fore[t_run.MARK_ERROR] = property_int['color.white']
buffer.marker_back[t_run.MARK_ERROR] = property_int['color.light_red']
-for i = 25, 31 do -- fold margin markers
+for i = buffer.MARKNUM_FOLDEREND, buffer.MARKNUM_FOLDEROPEN do -- fold margin
buffer.marker_fore[i] = property_int['color.white']
buffer.marker_back[i] = property_int['color.grey']
buffer.marker_back_selected[i] = property_int['color.grey_black']