9 Commits

Author SHA1 Message Date
Ingo Karkat c569761d9a ENH: Allow to preset reserved marks for ingo#plugin#marks#Reserve() via g:IngoLibrary_Marks 2019-07-24 20:42:21 +02:00
Ingo Karkat 27fa5cc99f ingo#plugin#marks#FindUnused(): Reserve mark via setpos() instead of normal! m
The :normal command may not be allowed within a :map-expr, the low-level setpos() is equivalent, and can therefore be used to avoid the problem.
2019-01-28 13:55:37 +01:00
Ingo Karkat 5a8308cf5e ingo#plugin#marks#FindUnused(): Minor: Also use default marks if a:consideredMarks is empty 2019-01-28 12:57:58 +01:00
Ingo Karkat 0326c57912 Documentation: Document optional a:marks of ingo#plugin#marks#Reserve() 2019-01-28 12:53:22 +01:00
Ingo Karkat 3307d27ffd Add ingo#plugin#marks#Reuse() 2017-10-11 17:03:28 +02:00
Ingo Karkat 9ba9f7a70b ingo#plugin#marks#FindUnused(): Cleared marks may still have the bufnr set
Therefore, check only the {lnum} and {col} elements (1 and 2) from the mark; ignore {buf} and {off}.
2017-10-11 17:01:50 +02:00
Ingo Karkat 0532ae3e6f Expose ingo#plugin#marks#FindUnused(), and have it optionally take the considered marks 2017-10-11 16:24:13 +02:00
Ingo Karkat 269403fcb0 Move into ingo-library 2017-05-26 17:46:09 +02:00
Ingo Karkat dac600bdb6 file creation 2017-05-26 17:16:01 +02:00