mirror of
https://github.com/zoriya/vim.git
synced 2025-12-22 23:25:31 +00:00
patch 8.0.1038: strike-through text not supported
Problem: Strike-through text not supported.
Solution: Add support for the "strikethrough" attribute. (Christian
Brabandt, Ken Takata)
This commit is contained in:
@@ -3899,6 +3899,11 @@ draw_string_QD(int row, int col, char_u *s, int len, int flags)
|
||||
MoveTo(FILL_X(col), FILL_Y(row + 1) - 1);
|
||||
LineTo(FILL_X(col + len) - 1, FILL_Y(row + 1) - 1);
|
||||
}
|
||||
if (flags & DRAW_STRIKE)
|
||||
{
|
||||
MoveTo(FILL_X(col), FILL_Y(row + 1) - gui.char_height/2);
|
||||
LineTo(FILL_X(col + len) - 1, FILL_Y(row + 1) - gui.char_height/2);
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & DRAW_UNDERC)
|
||||
|
||||
Reference in New Issue
Block a user