Commit Graph

13 Commits

Author SHA1 Message Date
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
92abcce1ff Stage and revert individual hunks. 2014-01-09 12:14:59 +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
03ca0f8d93 Extract utility functions. 2014-01-08 09:55:54 +01:00
Andy Stewart
fa582f7863 Only redraw when changing line highlighting. 2014-01-07 10:21:04 +01:00
Andy Stewart
b996dd3b53 Remove unnecessary precondition. 2014-01-06 17:11:19 +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
65b050ba2e Fix unnecessary modified sign in modified-and-removed diff.
This bug didn't affect anything because the unnecessary sign was
overwritten by the correct sign.
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
88623e3fec Speed up snake-to-camel-case conversion. 2014-01-06 11:31:30 +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