Friday, October 13, 2017

How to check if strikethrough is available

A strikethrough attribute is available since patch 1038.
:help strikethrough says
In general "undercurl" and "strikethrough" is only available in the GUI.
But my cygwin and neovim terminals can also show it
and then I am looking for how to check and use it as much as possible.

I am now trying with:
has('patch-8.0.1038') &&
\(&term == 'builtin_gui' || &termguicolors || (!empty(&t_Ts) && !empty(&t_Te)))

I would appreciate if you could give me more useful way.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment