Home
last modified time | relevance | path

Searched refs:vim_strsave (Results 1 – 25 of 113) sorted by relevance

12345

/vim-8.2.3635/src/
H A Doption.c504 p_tenc = vim_strsave((char_u *)buf); in set_init_1()
682 p = vim_strsave(val); in set_string_default_esc()
1126 p_hlg = vim_strsave(lang); in set_helplang_default()
1790 newval = vim_strsave(s); in do_set()
1830 *(char_u **)varp = vim_strsave( in do_set()
1834 *(char_u **)varp = vim_strsave( in do_set()
1838 *(char_u **)varp = vim_strsave( in do_set()
3997 *stringval = vim_strsave(p); in get_option_value()
5899 buf->b_p_ff = vim_strsave(p_ff); in buf_copy_options()
6137 buf->b_p_isk = vim_strsave(p_isk); in buf_copy_options()
[all …]
H A Dmessage_test.c88 s = vim_strsave((char_u *)"text"); in test_trunc_string()
95 s = vim_strsave((char_u *)"a text that fits"); in test_trunc_string()
102 s = vim_strsave((char_u *)"a short text"); in test_trunc_string()
109 s = vim_strsave((char_u *)"a text tha just fits"); in test_trunc_string()
116 s = vim_strsave((char_u *)"a text that nott fits"); in test_trunc_string()
133 s = vim_strsave((char_u *)"Ä text tha just fits"); in test_trunc_string_mbyte()
140 s = vim_strsave((char_u *)"a text ÄÖÜä nott fits"); in test_trunc_string_mbyte()
147 s = vim_strsave((char_u *)"a text that not fitsÄ"); in test_trunc_string_mbyte()
H A Dfindfile.c461 vim_strsave(helper); in vim_findfile_init()
538 search_ctx->ffsc_fix_path = vim_strsave(path); in vim_findfile_init()
940 = vim_strsave(dirptrs[0])) != NULL) in vim_findfile()
1445 vp->ffv_wc_path = vim_strsave(wc_path); in ff_check_visited()
1491 new->ffs_wc_path = vim_strsave(wc_part); in ff_create_stack_element()
1750 ff_file_to_find = vim_strsave(NameBuff); in find_file_in_path_option()
1798 file_name = vim_strsave(ff_file_to_find); in find_file_in_path_option()
1833 file_name = vim_strsave(NameBuff); in find_file_in_path_option()
2364 p = vim_strsave(buf); in expand_path_option()
2481 in_curdir[i] = vim_strsave(path); in uniquefy_paths()
[all …]
H A Dfilepath.c438 s = vim_strsave(dirname); in modify_fname()
473 s = vim_strsave(dirname); in modify_fname()
507 p = vim_strsave((char_u *)"."); in modify_fname()
1526 p = vim_strsave(p); in f_pathshorten()
2016 p = vim_strsave(p); in f_resolve()
2035 remain = vim_strsave(q - 1); in f_resolve()
2075 remain = vim_strsave(q - 1); in f_resolve()
2110 p = vim_strsave(buf); in f_resolve()
2381 tofree = vim_strsave(dflt); in do_browse()
2475 last_dir = vim_strsave(fname); in do_browse()
[all …]
H A Doptionstr.c350 && (s = vim_strsave(*varp)) != NULL) in set_string_option_global()
392 s = vim_strsave(val); in set_string_option_direct()
510 s = vim_strsave(value == NULL ? (char_u *)"" : value); in set_string_option()
536 saved_oldval_l = vim_strsave(oldval_l); in set_string_option()
538 saved_oldval_g = vim_strsave(oldval_g); in set_string_option()
539 saved_oldval = vim_strsave(oldval); in set_string_option()
540 saved_newval = vim_strsave(s); in set_string_option()
913 p_bg = vim_strsave((char_u *)(dark ? "dark" : "light")); in did_set_string_option()
1205 p_cm = vim_strsave((char_u *)"zip"); in did_set_string_option()
1520 p_guifont = (p != NULL) ? p : vim_strsave(oldval); in did_set_string_option()
[all …]
H A Dmap.c192 char_u *s = vim_strsave(mp->m_str); in showmap()
240 mp->m_keys = vim_strsave(keys); in map_add()
241 mp->m_str = vim_strsave(rhs); in map_add()
242 mp->m_orig_str = vim_strsave(orig_rhs); in map_add()
760 char_u *newstr = vim_strsave(rhs); in do_map()
770 mp->m_orig_str = vim_strsave(orig_rhs); in do_map()
1304 (*file)[count++] = vim_strsave(p); in ExpandMappings()
1494 char_u *qe = vim_strsave(mp->m_keys); in check_abbr()
1617 expr = vim_strsave(str); in eval_map_expr()
2414 arg = vim_strsave(lhs); in f_mapset()
[all …]
H A Dautocmd.c501 AUGROUP_NAME(i) = vim_strsave(name); in au_new_group()
767 save_ei = vim_strsave(p_ei); in au_event_disable()
1282 ac->cmd = vim_strsave(cmd); in do_autocmd_event()
1986 autocmd_fname = vim_strsave(autocmd_fname); in apply_autocmds_group()
2018 sfname = vim_strsave(buf->b_sfname); in apply_autocmds_group()
2024 fname = vim_strsave(fname); // make a copy, so we can change it in apply_autocmds_group()
2028 sfname = vim_strsave(fname); in apply_autocmds_group()
2051 fname = vim_strsave(fname); in apply_autocmds_group()
2434 retval = vim_strsave(ac->cmd); in getnextac()
2469 sfname = vim_strsave(sfname); in has_autocmd()
[all …]
H A Dterminal.c653 term->tl_command = vim_strsave(cmd); in term_start()
840 opt.jo_eof_chars = vim_strsave(keys); in ex_terminal()
877 tofree = cmd = vim_strsave(p_sh); in ex_terminal()
3263 text = vim_strsave((char_u *)""); in handle_pushline()
5438 line1 = vim_strsave(ml_get(lnum)); in term_load_dump()
5569 p = vim_strsave(ml_get(1)); in term_swap_diff()
6025 rettv->vval.v_string = vim_strsave(p); in f_term_gettty()
6305 term->tl_api = vim_strsave(api); in f_term_setapi()
6333 term->tl_command = vim_strsave(cmd); in f_term_setrestore()
6361 term->tl_kill = vim_strsave(how); in f_term_setkill()
[all …]
H A Dlocale.c440 locale_list = vim_strsave((char_u *)".\n"); in find_locales()
477 loc = vim_strsave(loc); in find_locales()
490 vim_strsave((char_u *)"C"); in find_locales()
H A Dnetbeans.c183 hostname = (char *)vim_strsave((char_u *)hostname); in netbeans_connect()
185 address = (char *)vim_strsave((char_u *)address); in netbeans_connect()
187 password = (char *)vim_strsave((char_u *)password); in netbeans_connect()
200 address = (char *)vim_strsave((char_u *)NB_DEF_ADDR); in netbeans_connect()
283 *host = (char *)vim_strsave(&buf[5]); in getConnInfo()
288 *port = (char *)vim_strsave(&buf[5]); in getConnInfo()
293 *auth = (char *)vim_strsave(&buf[5]); in getConnInfo()
340 node->keystr = vim_strsave(keystr); in postpone_keycommand()
1944 fg = vim_strsave(args); in nb_do_cmd()
1945 bg = vim_strsave(p); in nb_do_cmd()
[all …]
H A Dmenu.c490 path_name = vim_strsave(menu_path); in add_menu_path()
592 menu->name = vim_strsave(name); in add_menu_path()
598 menu->en_name = vim_strsave(en_name); in add_menu_path()
631 menu->iconfile = vim_strsave(menuarg->iconfile); in add_menu_path()
1114 name = path_name = vim_strsave(path_name); in show_menus()
1812 *actext = vim_strsave(p + 1); in menu_text()
1816 text = vim_strsave(str); in menu_text()
2443 saved_name = vim_strsave(name_arg); in menu_getbyname()
2594 saved_name = vim_strsave(path_name); in gui_find_menu()
2707 from = vim_strsave(from); in ex_menutranslate()
[all …]
H A Djob.c934 return vim_strsave(arg); in win32_escape_arg()
1160 job->jv_stoponexit = vim_strsave((char_u *)"term"); in job_alloc()
1181 job->jv_stoponexit = vim_strsave(opt->jo_stoponexit); in job_set_options()
1375 argv[i] = (char *)vim_strsave((char_u *)argv_arg[i]); in job_start()
1563 argv[0].vval.v_string = vim_strsave(text); in invoke_prompt_callback()
1736 rettv->vval.v_string = vim_strsave(buf_prompt_text(buf)); in f_prompt_getprompt()
1761 buf->b_prompt_text = vim_strsave(text); in f_prompt_setprompt()
1952 rettv->vval.v_string = vim_strsave((char_u *)"fail"); in f_job_status()
1961 rettv->vval.v_string = vim_strsave((char_u *)job_status(job)); in f_job_status()
H A Devalwindow.c939 rettv->vval.v_string = vim_strsave((char_u *)"unknown"); in f_win_gettype()
944 rettv->vval.v_string = vim_strsave((char_u *)"autocmd"); in f_win_gettype()
947 rettv->vval.v_string = vim_strsave((char_u *)"preview"); in f_win_gettype()
951 rettv->vval.v_string = vim_strsave((char_u *)"popup"); in f_win_gettype()
955 rettv->vval.v_string = vim_strsave((char_u *)"command"); in f_win_gettype()
959 rettv->vval.v_string = vim_strsave((char_u *) in f_win_gettype()
H A Dex_cmds2.c566 p_shm_save = vim_strsave(p_shm); in ex_listdo()
626 p_shm_save = vim_strsave(p_shm); in ex_listdo()
648 p_shm_save = vim_strsave(p_shm); in ex_listdo()
755 old_cur_comp = vim_strsave(old_cur_comp); in ex_compiler()
H A Dos_unix.c1973 oldicon = vim_strsave(T_NAME + 8); in get_x11_icon()
1975 oldicon = vim_strsave(T_NAME); in get_x11_icon()
2176 oldicon = vim_strsave(T_NAME + 8); in get_x11_icon()
2178 oldicon = vim_strsave(T_NAME); in get_x11_icon()
3215 *path = vim_strsave(name); in mch_can_exe()
3254 *path = vim_strsave(buf); in mch_can_exe()
4369 *name1 = vim_strsave((char_u *)tty_name); in open_pty()
4414 *sh_tofree = vim_strsave(p_sh); in unix_build_argv()
5821 return vim_strsave((char_u *)"kill"); in get_signal_name()
5828 return vim_strsave(numbuf); in get_signal_name()
[all …]
H A Dclientserver.c206 parmp->serverStrEnc = vim_strsave(p_enc); in exec_on_server()
779 v.di_tv.vval.v_string = vim_strsave(str); in remote_common()
831 argvars[1].vval.v_string = vim_strsave((char_u *)"foreground()"); in f_remote_foreground()
886 v.di_tv.vval.v_string = vim_strsave(s); in f_remote_peek()
H A Duserfunc.c105 arg_copy = vim_strsave(arg); in one_function_arg()
161 type = vim_strsave((char_u *) in one_function_arg()
303 expr = vim_strsave(expr); in get_function_args()
955 skip_until = vim_strsave((char_u *)"."); in get_function_body()
1041 p = vim_strsave((char_u *)""); in get_function_body()
1048 p = vim_strsave(theline); in get_function_body()
1348 ret_type = vim_strsave(ret_type); in get_lambda_tv()
2333 : vim_strsave(ufunc->uf_name_exp); in copy_func()
3668 name = vim_strsave(name); in trans_function_name()
4324 name = vim_strsave((char_u *)numbuf); in define_function()
[all …]
H A Dregister.c140 expr_copy = vim_strsave(expr_line); in get_expr_line()
164 return vim_strsave(expr_line); in get_expr_line_src()
306 reg->y_array[i] = vim_strsave(y_current->y_array[i]); in get_register()
549 str = vim_strsave(ga.ga_data); in execreg_line_continuation()
1227 vim_strsave(ml_get(lnum))) == NULL) in op_yank()
1510 if ((y_current->y_array[j] = vim_strsave(curr->y_array[j])) == NULL) in copy_yank_reg()
1678 ptr = vim_strsave(p); in do_put()
2640 return getreg_wrap_one_line(vim_strsave(retval), flags); in get_reg_contents()
2958 pp[lnum] = vim_strsave(*ss); in str_to_reg()
H A Dpopupmenu.c1283 (*array)->pum_text = vim_strsave((char_u *)""); in split_message()
1284 (*array + height - 1)->pum_text = vim_strsave((char_u *)""); in split_message()
1296 (*array)[line++].pum_text = vim_strsave((char_u *)""); in split_message()
1383 balloon_array[idx].pum_text = vim_strsave( in ui_post_balloon()
1498 s = vim_strsave(s); in pum_show_popupmenu()
H A Dif_xcmdsrv.c316 serverName = vim_strsave(name); in DoRegisterName()
796 *str = vim_strsave(p->strings.ga_data); in serverReadReply()
946 *loose = vim_strsave(p + 1); in LookupName()
1400 res = vim_strsave(res); in server_parse_message()
H A Dchange.c923 buf->b_start_fenc = vim_strsave(buf->b_p_fenc); in save_file_ff()
1410 saved_line = vim_strsave(ml_get_curline()); in open_line()
1424 next_line = vim_strsave(ml_get(curwin->w_cursor.lnum + 1)); in open_line()
1426 next_line = vim_strsave((char_u *)""); in open_line()
2279 p_extra = vim_strsave(ml_get_curline()); in open_line()
2318 newp = vim_strsave((char_u *)""); in truncate_line()
H A Dhighlight.c387 char_u *copy_p = vim_strsave(p); in init_highlight()
846 HL_TABLE()[idx].sg_font_name = vim_strsave(arg); in highlight_set_font()
874 HL_TABLE()[idx].sg_font_name = vim_strsave(arg); in highlight_set_font()
886 HL_TABLE()[idx].sg_font_name = vim_strsave(arg); in highlight_set_font()
1137 *namep = vim_strsave(arg); in highlight_set_guifg()
1206 *namep = vim_strsave(arg); in highlight_set_guibg()
1268 *namep = vim_strsave(arg); in highlight_set_guisp()
1350 p = vim_strsave(buf); in highlight_set_startstop_termcode()
2025 HL_TABLE()[id - 1].sg_font_name = vim_strsave(font_name); in hl_set_font_name()
2567 taep->ae_u.term.start = vim_strsave(aep->ae_u.term.start); in get_attr_entry()
[all …]
H A Ddebugger.c627 bp->dbg_name = vim_strsave(STRNCMP(p, "g:", 2) == 0 ? p + 2 : p); in dbg_parsearg()
629 bp->dbg_name = vim_strsave(curbuf->b_ffname); in dbg_parsearg()
632 bp->dbg_name = vim_strsave(p); in dbg_parsearg()
H A Dtag.c217 if ((ptag_entry.tagname = vim_strsave(tag)) == NULL) in do_tag()
256 if ((ptag_entry.tagname = vim_strsave(tag)) == NULL) in do_tag()
283 if ((tagstack[tagstackidx].tagname = vim_strsave(tag)) == NULL) in do_tag()
528 tagmatchname = vim_strsave(name); in do_tag()
1433 mfp = vim_strsave(res_name); in find_tagfunc_tags()
2085 vim_strsave(tag_fname)) != NULL) in find_tags()
2837 char_u *tag_fname = vim_strsave(fname); in found_tagfile_cb()
2937 tnp->tn_tags = vim_strsave((*curbuf->b_p_tags != NUL) in get_tagfname()
3408 nofile_fname = vim_strsave(fname); in jumpto_tag()
3761 retval = vim_strsave(fname); in expand_tag_fname()
H A Ddict.c446 val = vim_strsave(str); in dict_add_string_len()
678 s = vim_strsave(s); in dict_get_string()
1238 li->li_tv.vval.v_string = vim_strsave(di->di_key); in dict_list()
1262 li2->li_tv.vval.v_string = vim_strsave(di->di_key); in dict_list()

12345