Commit Graph

20 Commits

Author SHA1 Message Date
Andy Stewart
ba0f5930e5 Optimise removal of all signs where possible. 2014-03-24 10:26:36 +01:00
Andy Stewart
43ae99b3d0 Document variable types. 2014-02-04 12:50:21 +01:00
Andy Stewart
84cb4b8b9d Remove orphaned signs. 2014-02-04 12:49:55 +01:00
Andy Stewart
270973079d Fix bug where updated sign kept old name. 2014-02-03 11:07:54 +01:00
Andy Stewart
072846e945 Don't place/unplace dummy sign unnecessarily. 2014-01-27 14:15:19 +01:00
Andy Stewart
7808f9f647 Fix type of variable when clearing signs. 2014-01-16 11:22:32 +01:00
Andy Stewart
c680694b06 Improve sign handling with better data structure.
Using a dictionary instead of a list clarifies the code.
2014-01-13 10:34:41 +01:00
Andy Stewart
da47098496 Fix bug in clearing signs when disabling plugin. 2014-01-13 09:44:26 +01:00
Andy Stewart
e750b5fa21 Eliminate unnecessary string concatenation. 2014-01-11 17:24:11 +01:00
Andy Stewart
38e6524fff Remove unnecessary argument to sign unplace.
Each sign instance has a unique id so we don't need to scope per file.
2014-01-10 10:51:48 +01:00
Andy Stewart
648281497f Standardise on . 2014-01-10 10:48:20 +01:00
Andy Stewart
b1f023e230 Remove unnecessary colons. 2014-01-10 10:46:53 +01:00
Andy Stewart
a6ac0d879c Whitespace 2014-01-09 18:00:29 +01:00
Andy Stewart
1ad55ae1eb Fix type mismatch.
Introduced by attempt to workaround lack of support for default value in
getbufvar().
2014-01-09 17:57:19 +01:00
Andy Stewart
7ce6309a01 Don't call getbufvar() with a default value.
Support for a default value in getbufvar() was introduced some time
after Vim 7.3.547 which is the current stable version in some package
repositories.
2014-01-09 10:05:49 +01:00
Andy Stewart
faa6aaf669 Minimise sign place/unplace calls to speed things up.
Profiling shows that `:sign place` and `:sign unplace` are slow despite
being native vimscript functions.  This commit minimises the number of
such calls by only updating signs that have changed.
2014-01-06 17:05:01 +01:00
Andy Stewart
c81d897d60 Reduce chance of dummy sign's id clobbering another. 2014-01-06 17:04:54 +01:00
Andy Stewart
a4f6acb731 Use buffer-local variables to store signs. 2014-01-06 11:22:34 +01:00
Andy Stewart
d3177cacd9 Remove unnecessary conditional. 2014-01-05 13:59:22 +01:00
Andy Stewart
702d27a84f Autoload. 2013-12-17 11:03:52 +01:00