Skip to content

Fix MacVim GUI to hard-code sign icon to width of 2 to reduce dependency#922

Merged
ychin merged 1 commit intomacvim-dev:masterfrom
ychin:sign-icon-unncessary-text-parse
Jul 7, 2019
Merged

Fix MacVim GUI to hard-code sign icon to width of 2 to reduce dependency#922
ychin merged 1 commit intomacvim-dev:masterfrom
ychin:sign-icon-unncessary-text-parse

Conversation

@ychin
Copy link
Copy Markdown
Member

@ychin ychin commented Jul 7, 2019

Prevoiusly the code uses strlen to get the sign icon width but it's always 2 (according to Vim's documentation, see ":h sign-define"), and the function it calls (sign_get_text) has been removed from Vim already. Just use the hard-coded 2 for simplicity and reduce dependency.

Prevoiusly the code uses strlen to get the sign icon width but it's
always 2 (according to Vim's documentation, see ":h sign-define"), and
the function it calls (`sign_get_text`) has been removed from Vim
already. Just use the hard-coded 2 for simplicity and reduce dependency.
@ychin ychin merged commit 404104c into macvim-dev:master Jul 7, 2019
@ychin ychin deleted the sign-icon-unncessary-text-parse branch July 7, 2019 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant