gregsexton / gitv

gitk for Vim.
936 stars 59 forks source link

Using strwidth gives an error for Vim < 7.3 #14

Closed adamreeve closed 13 years ago

adamreeve commented 13 years ago

The strwidth function was added in Vim 7.3. This commit defines a wrapper function that uses strwidth if it exists, otherwise it uses the len function for older versions of Vim.

I don't have much experience with Vim script so this might not be the best way to fix this.

gregsexton commented 13 years ago

Thanks Adam this is great. Completely missed srtwidth() being Vim 7.3+.