On 06-Oct-2023 06:00, Christian Brabandt wrote:
patch 9.0.1991: no cmdline completion for setting the font
Commit:https://github.com/vim/vim/commit/290b887e8cc2c0d3dfc7f315b2052472c7c589cc
Author: Yee Cheng Chin<[email protected]>
Date: Thu Oct 5 20:54:21 2023 +0200
patch 9.0.1991: no cmdline completion for setting the font
Problem: no cmdline completion for setting the font
Solution: enable it on Win32 and GTK builds
Add guifont cmdline completion (for Windows and GTK)
For Windows, auto-complete will only suggest monospace fonts as that's
the only types allowed. Will also suggest font options after the colon,
including suggesting the current font size for convenience, and misc
charset and quality options like `cANSI` and `qCLEARTYPE`.
For GTK, auto-complete will suggest only monospace fonts for `guifont`
but will include all fonts for `guifontwide`. The completion code
doesn't currently suggest the current font size, as the GTK guifont
format does not have a clear delimiter (':' for other platforms).
closes: #13264
Signed-off-by: Christian Brabandt<[email protected]>
Co-authored-by: Yee Cheng Chin<[email protected]>
Hi All,
After this patch, clang 17.0.1 x64 (on msys2 x64, Win 8.1 x64) gives
this warning for non-gui build:
<snip>
optionstr.c:902:1: warning: unused function 'expand_set_opt_callback'
[-Wunused-function]
902 | expand_set_opt_callback(
| ^~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
</snip>
The attached patch tries to fix it.
Cheers
John
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/9ca36f83-d18e-45ef-9c4d-c09d0e1fc7ed%40internode.on.net.
--- optionstr.c.orig 2023-10-06 05:58:30.484679800 +1100
+++ optionstr.c 2023-10-06 06:19:40.750410800 +1100
@@ -849,6 +849,7 @@
return ret;
}
+# if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_GTK)
static garray_T *expand_cb_ga;
static optexpand_T *expand_cb_args;
@@ -938,6 +939,7 @@
*numMatches = ga.ga_len;
return OK;
}
+#endif
/*
* Expand an option which is a list of flags.