From 3d56741b1ef1ea2790607a5575f771d43aae4308 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 16 Jun 2011 17:23:55 -0400 Subject: Use functions for generating unique IDs for markers, indicators, and user lists. --- modules/textadept/bookmarks.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/textadept/bookmarks.lua') 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() -- cgit v1.2.3