diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-12-31 21:01:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-12-31 21:01:02 +0000 |
commit | 567e4dec2cb9b5eda4d7575f8f24c1da5bf646ea (patch) | |
tree | 39da36982c40a5ad85859e3994fa5f5f164eaa5e /src | |
parent | def9e829de8bcaf723568e5780c47557e83f99f0 (diff) | |
download | vim-git-567e4dec2cb9b5eda4d7575f8f24c1da5bf646ea.tar.gz |
updated for version 7.0027v7.0027
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_x11.c | 15 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c index 03300e453..90e793c33 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -1834,7 +1834,16 @@ gui_mch_init_font(font_name, do_fontset) #ifdef FEAT_XFONTSET XFontSet fontset = NULL; +#endif +#ifdef FEAT_GUI_MOTIF + /* A font name equal "*" is indicating, that we should activate the font + * selection dialogue to get a new font name. So let us do it here. */ + if (font_name != NULL && STRCMP(font_name, "*") == 0) + font_name = gui_xm_select_font(hl_get_font_name()); +#endif + +#ifdef FEAT_XFONTSET if (do_fontset) { /* If 'guifontset' is set, VIM treats all font specifications as if @@ -1936,6 +1945,10 @@ gui_mch_init_font(font_name, do_fontset) } } +#ifdef FEAT_GUI_MOTIF + gui_motif_synch_fonts(); +#endif + return OK; } @@ -1988,6 +2001,7 @@ gui_mch_get_font(name, giveErrorIfMissing) return (GuiFont)font; } +#if defined(FEAT_EVAL) || defined(PROTO) /* * Return the name of font "font" in allocated memory. * Don't know how to get the actual name, thus use the provided name. @@ -2002,6 +2016,7 @@ gui_mch_get_fontname(font, name) return NULL; return vim_strsave(name); } +#endif int gui_mch_adjust_charsize() diff --git a/src/main.c b/src/main.c index 78639a2c2..7ab914cb5 100644 --- a/src/main.c +++ b/src/main.c @@ -3158,7 +3158,7 @@ build_drop_cmd(filec, filev, sendReply) } /* Bring the window to the foreground, goto Insert mode when 'im' set and * clear command line. */ - ga_concat(&ga, (char_u *)"cal foreground()|if &im|star|en|ec<CR>"); + ga_concat(&ga, (char_u *)"cal foreground()|if &im|star|en|redr|f<CR>"); ga_append(&ga, NUL); return ga.ga_data; } |