Merge pull request #922 from ychin/sign-icon-unncessary-text-parse

Fix MacVim GUI to hard-code sign icon to width of 2 to reduce dependency
This commit is contained in:
Yee Cheng Chin
2019-07-07 04:10:26 -07:00
committed by GitHub
+1 -2
View File
@@ -2369,8 +2369,7 @@ gui_mch_drawsign(int row, int col, int typenr)
if (!imgName)
return;
char_u *txt = sign_get_text(typenr);
int txtSize = txt ? strlen((char*)txt) : 2;
const int txtSize = 2; // This is specified in the docs, and is expected to always be the case.
[[MMBackend sharedInstance] drawSign:imgName
atRow:row