diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-02 18:33:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-02 18:33:56 +0200 |
commit | cf4b00c856ef714482d8d060332ac9a4d74e6b88 (patch) | |
tree | a17efb73ba6cffbdc8c17adbec2152ac41c35803 /src/gui_x11.c | |
parent | da22b8cc8b1b96fabd5a4c35c57b04a351340fb1 (diff) |
patch 8.0.1038: strike-through text not supportedv8.0.1038
Problem: Strike-through text not supported.
Solution: Add support for the "strikethrough" attribute. (Christian
Brabandt, Ken Takata)
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r-- | src/gui_x11.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c index a638222251..1e790a81c4 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -2542,6 +2542,16 @@ gui_mch_draw_string( y, FILL_X(col + cells) - 1, y); } + if (flags & DRAW_STRIKE) + { + int y = FILL_Y(row + 1) - gui.char_height/2; + + XSetForeground(gui.dpy, gui.text_gc, prev_sp_color); + XDrawLine(gui.dpy, gui.wid, gui.text_gc, FILL_X(col), + y, FILL_X(col + cells) - 1, y); + XSetForeground(gui.dpy, gui.text_gc, prev_fg_color); + } + #ifdef FEAT_XFONTSET if (current_fontset != NULL) XSetClipMask(gui.dpy, gui.text_gc, None); |