diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-27 23:58:35 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-27 23:58:35 +0000 |
commit | 5e3cb7e8699f855193179a8cb799d1087f4a2ac9 (patch) | |
tree | 297e019074e2c2b85d5151701fcfae03bf02ceb9 /src/gui.c | |
parent | eddf53b02e2b007208b19c74fb616be2c0839b36 (diff) | |
download | vim-git-5e3cb7e8699f855193179a8cb799d1087f4a2ac9.tar.gz |
updated for version 7.0209v7.0209
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -346,7 +346,7 @@ gui_init() */ if (!option_was_set((char_u *)"mouse")) set_string_option_direct((char_u *)"mouse", -1, - (char_u *)"a", OPT_FREE); + (char_u *)"a", OPT_FREE, SID_NONE); /* * If -U option given, use only the initializations from that file and @@ -788,10 +788,7 @@ set_guifontwide(name) gui_mch_free_font(gui.wide_font); gui.wide_font = font; set_string_option_direct((char_u *)"gfw", -1, - wide_name, OPT_FREE); -# ifdef FEAT_EVAL - set_option_scriptID((char_u *)"gfw", current_SID); -# endif + wide_name, OPT_FREE, 0); } } break; @@ -3387,13 +3384,8 @@ get_tabline_label(tp) STRCPY(NameBuff, res); if (called_emsg) - { set_string_option_direct((char_u *)"guitablabel", -1, - (char_u *)"", OPT_FREE); -# ifdef FEAT_EVAL - set_option_scriptID((char_u *)"guitablabel", SID_ERROR); -# endif - } + (char_u *)"", OPT_FREE, SID_ERROR); called_emsg |= save_called_emsg; } else @@ -4809,7 +4801,11 @@ gui_do_findrepl(flags, find_text, repl_text, down) if (type == FRD_REPLACEALL) { ga_concat(&ga, (char_u *)"/"); - concat_esc(&ga, repl_text, '/'); /* escape slashes */ + /* escape / and \ */ + p = vim_strsave_escaped(repl_text, (char_u *)"/\\"); + if (p != NULL) + ga_concat(&ga, p); + vim_free(p); ga_concat(&ga, (char_u *)"/g"); } ga_append(&ga, NUL); |