diff options
author | 2011-06-16 17:23:55 -0400 | |
---|---|---|
committer | 2011-06-16 17:23:55 -0400 | |
commit | 3d56741b1ef1ea2790607a5575f771d43aae4308 (patch) | |
tree | af4da86dec710546924e7ea7b893591989e785d0 /modules/textadept/bookmarks.lua | |
parent | 9a61370b7d739b51228395b304915b2c4cc2e077 (diff) | |
download | textadept-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.lua | 5 |
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() |