aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/bookmarks.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-06-16 17:23:55 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-06-16 17:23:55 -0400
commit3d56741b1ef1ea2790607a5575f771d43aae4308 (patch)
treeaf4da86dec710546924e7ea7b893591989e785d0 /modules/textadept/bookmarks.lua
parent9a61370b7d739b51228395b304915b2c4cc2e077 (diff)
downloadtextadept-3d56741b1ef1ea2790607a5575f771d43aae4308.tar.gz
textadept-3d56741b1ef1ea2790607a5575f771d43aae4308.zip
Use functions for generating unique IDs for markers, indicators, and user lists.
Diffstat (limited to 'modules/textadept/bookmarks.lua')
-rw-r--r--modules/textadept/bookmarks.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua
index 97121547..26cfb09a 100644
--- a/modules/textadept/bookmarks.lua
+++ b/modules/textadept/bookmarks.lua
@@ -9,18 +9,17 @@ module('_m.textadept.bookmarks', package.seeall)
-- Markdown:
-- ## Settings
--
--- * `MARK_BOOKMARK`: The unique integer mark used to identify a bookmarked
--- line.
-- * `MARK_BOOKMARK_COLOR`: The [Scintilla color][scintilla_color] used for a
-- bookmarked line.
--
-- [scintilla_color]: http://scintilla.org/ScintillaDoc.html#colour
-- settings
-MARK_BOOKMARK = 1
MARK_BOOKMARK_COLOR = 0xC08040
-- end settings
+local MARK_BOOKMARK = _SCINTILLA.next_marker_number()
+
---
-- Adds a bookmark to the current line.
function add()