X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=config.def.h;h=9e610109f094ea945e944472ccba18e8a14bc6fd;hb=528241a;hp=860ce3d68781d4232b3dd9030ac87cc86e75c499;hpb=a2a60f0a2ce33dbd4ef07aaa4a914391481fa1de;p=st.git diff --git a/config.def.h b/config.def.h index 860ce3d..9e61010 100644 --- a/config.def.h +++ b/config.def.h @@ -134,7 +134,7 @@ static unsigned int defaultunderline = 7; * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ -static Mousekey mshortcuts[] = { +static MouseShortcut mshortcuts[] = { /* button mask string */ { Button4, XK_ANY_MOD, "\031" }, { Button5, XK_ANY_MOD, "\005" }, @@ -417,3 +417,12 @@ static uint selmasks[] = { [SEL_RECTANGULAR] = Mod1Mask, }; +/* + * Printable characters in ASCII, used to estimate the advance width + * of single wide characters. + */ +static char ascii_printable[] = + " !\"#$%&'()*+,-./0123456789:;<=>?" + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" + "`abcdefghijklmnopqrstuvwxyz{|}~"; +