Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 74) sorted by relevance

123

/vim-8.2.3635/src/
H A Devalwindow.c33 tabpage_T *tp; in win_getid() local
103 *tpp = tp; in win_id2wp_tp()
186 for (wp = (tp == NULL ? curtab : tp)->tp_first_popupwin; in find_win_by_nr()
246 tp = NULL; in find_tabwin()
252 tp = curtab; in find_tabwin()
256 *ptp = tp; in find_tabwin()
322 twin = (tp == curtab) ? curwin : tp->tp_curwin; in get_winnr()
331 twin = (tp == curtab) ? lastwin : tp->tp_lastwin; in get_winnr()
334 twin = (tp == curtab) ? prevwin : tp->tp_prevwin; in get_winnr()
372 for (wp = (tp == curtab) ? firstwin : tp->tp_firstwin; in get_winnr()
[all …]
H A Dwindow.c2309 for (tp = first_tabpage; tp != NULL; tp = nexttp) in close_windows()
2784 if (tp->tp_firstwin == tp->tp_lastwin) in win_close_othertab()
2879 if (tp == NULL ? ONE_WINDOW : tp->tp_firstwin == tp->tp_lastwin) in winframe_remove()
3040 if (tp == NULL ? ONE_WINDOW : tp->tp_firstwin == tp->tp_lastwin) in win_altframe()
3100 for (tp = first_tabpage; tp->tp_next != curtab; tp = tp->tp_next) in alt_tabpage()
4129 for (tp = first_tabpage; tp != NULL && i != n; tp = tp->tp_next) in find_tabpage()
4144 for (tp = first_tabpage; tp != NULL && tp != ftp; tp = tp->tp_next) in tabpage_index()
4319 for (tp = first_tabpage; tp->tp_next != ttp && tp->tp_next != NULL; in goto_tabpage()
4320 tp = tp->tp_next) in goto_tabpage()
4328 for (tp = first_tabpage; tp->tp_next != NULL; tp = tp->tp_next) in goto_tabpage()
[all …]
H A Dterm.c4946 char_u *tp, in handle_csi() argument
5114 if (tp[i] == '\007' || (tp[0] == OSC ? tp[i] == STERM in handle_osc()
5115 : (tp[i] == ESC && i + 1 < len && tp[i + 1] == '\\'))) in handle_osc()
5123 || (tp[j + 9] == '/' && tp[i + 12 == '/']))) in handle_osc()
5241 if (i - j == 6 && tp[i] != ESC && tp[i] != STERM) in handle_dcs()
5367 i = *tp; in check_termcode()
5500 || tp[j] == '-' || tp[j] == ';'); ++j) in check_termcode()
5542 char_u *argp = tp[0] == ESC ? tp + 2 : tp + 1; in check_termcode()
5562 if (((tp[0] == ESC && len >= 3 && tp[1] == '[') in check_termcode()
5581 && ((tp[0] == ESC && len >= 2 && tp[1] == ']') in check_termcode()
[all …]
H A Ddiff.c104 tabpage_T *tp; in diff_buf_delete() local
106 FOR_ALL_TABPAGES(tp) in diff_buf_delete()
113 if (tp == curtab) in diff_buf_delete()
233 tabpage_T *tp; in diff_invalidate() local
236 FOR_ALL_TABPAGES(tp) in diff_invalidate()
242 if (tp == curtab) in diff_invalidate()
259 tabpage_T *tp; in diff_mark_adjust() local
279 tabpage_T *tp, in diff_mark_adjust_tp() argument
525 if (tp == curtab) in diff_mark_adjust_tp()
2215 tabpage_T *tp; in diffopt_changed() local
[all …]
H A Dex_cmds2.c281 tabpage_T *tp; in check_changed_any() local
304 FOR_ALL_TABPAGES(tp) in check_changed_any()
305 if (tp != curtab) in check_changed_any()
306 FOR_ALL_WINDOWS_IN_TAB(tp, wp) in check_changed_any()
382 FOR_ALL_TAB_WINDOWS(tp, wp) in check_changed_any()
389 goto_tabpage_win(tp, wp); in check_changed_any()
452 tabpage_T *tp; in ex_listdo() local
499 tp = first_tabpage; in ex_listdo()
507 for( ; tp != NULL && i + 1 < eap->line1; tp = tp->tp_next) in ex_listdo()
588 if (!valid_tabpage(tp)) in ex_listdo()
[all …]
H A Dstrings.c2584 char *tp; in vim_vsnprintf_typval() local
2593 if (tp != NULL) in vim_vsnprintf_typval()
2600 STRMOVE(tp + 1, tp + 2); in vim_vsnprintf_typval()
2607 STRMOVE(tp + i, tp + i + 1); in vim_vsnprintf_typval()
2610 --tp; in vim_vsnprintf_typval()
2617 while (tp > tmp + 2 && *tp == '0' in vim_vsnprintf_typval()
2620 STRMOVE(tp, tp + 1); in vim_vsnprintf_typval()
2621 --tp; in vim_vsnprintf_typval()
2627 char *tp; in vim_vsnprintf_typval() local
2634 if (tp != NULL && (tp[1] == '+' || tp[1] == '-') in vim_vsnprintf_typval()
[all …]
H A Devalbuffer.c250 tabpage_T *tp; in set_buffer_lines() local
257 FOR_ALL_TAB_WINDOWS(tp, wp) in set_buffer_lines()
507 tabpage_T *tp; in f_deletebufline() local
565 FOR_ALL_TAB_WINDOWS(tp, wp) in f_deletebufline()
593 tabpage_T *tp; in get_buffer_info() local
620 FOR_ALL_TAB_WINDOWS(tp, wp) in get_buffer_info()
634 FOR_ALL_TABPAGES(tp) in get_buffer_info()
635 FOR_ALL_POPUPWINS_IN_TAB(tp, wp) in get_buffer_info()
918 tabpage_T **tp) in find_win_for_buf() argument
920 FOR_ALL_TAB_WINDOWS(*tp, *wp) in find_win_for_buf()
[all …]
H A Dmouse.c497 tabpage_T *tp; in do_mouse() local
501 tp = curtab; in do_mouse()
503 tp = find_tabpage(-c1); in do_mouse()
504 if (tp == curtab) in do_mouse()
509 else if (tp != NULL) in do_mouse()
2115 char_u *tp, in check_termcode_mouse() argument
2212 if (STRNCMP(tp, tp + *slen, (size_t)j) == 0 in check_termcode_mouse()
2373 p = tp + *slen; in check_termcode_mouse()
2406 p = tp + *slen; in check_termcode_mouse()
2564 p = tp + *slen; in check_termcode_mouse()
[all …]
H A Dgetchar.c1397 save_typeahead(tasave_T *tp) in save_typeahead() argument
1401 if (!tp->typebuf_valid) in save_typeahead()
1402 typebuf = tp->save_typebuf; in save_typeahead()
1404 tp->old_char = old_char; in save_typeahead()
1425 if (tp->typebuf_valid) in restore_typeahead()
1428 typebuf = tp->save_typebuf; in restore_typeahead()
2322 char_u *tp; in check_simplify_modifier() local
2329 if (tp[0] == K_SPECIAL && tp[1] == KS_MODIFIER) in check_simplify_modifier()
2333 int modifier = tp[2]; in check_simplify_modifier()
2334 int c = tp[3]; in check_simplify_modifier()
[all …]
H A Dglobals.h715 #define FOR_ALL_TABPAGES(tp) for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) argument
716 #define FOR_ALL_WINDOWS_IN_TAB(tp, wp) \ argument
717 for ((wp) = ((tp) == NULL || (tp) == curtab) \
718 ? firstwin : (tp)->tp_firstwin; (wp); (wp) = (wp)->w_next)
723 #define FOR_ALL_TAB_WINDOWS(tp, wp) \ argument
724 for ((tp) = first_tabpage; (tp) != NULL; (tp) = (tp)->tp_next) \
725 for ((wp) = ((tp) == curtab) \
726 ? firstwin : (tp)->tp_firstwin; (wp); (wp) = (wp)->w_next)
730 #define FOR_ALL_POPUPWINS_IN_TAB(tp, wp) \ argument
1901 #define FOR_ALL_DIFFBLOCKS_IN_TAB(tp, dp) \ argument
[all …]
H A Dsession.c723 tabpage_T *tp; in makeopens() local
727 FOR_ALL_TABPAGES(tp) in makeopens()
728 if (tp->tp_next != NULL && put_line(fd, "tabnew") == FAIL) in makeopens()
735 tabpage_T *tp = NULL; in makeopens() local
741 tp = find_tabpage(tabnr); in makeopens()
743 if (tp == NULL) in makeopens()
745 if (tp == curtab) in makeopens()
752 tab_firstwin = tp->tp_firstwin; in makeopens()
753 tab_topframe = tp->tp_topframe; in makeopens()
849 if (tp != NULL && tp->tp_localdir != NULL && ssop_flags & SSOP_CURDIR) in makeopens()
[all …]
H A Devalvars.c3663 tabpage_T *tp = NULL; in getwinvar() local
3672 tp = curtab; in getwinvar()
3673 win = find_win_by_nr(&argvars[off], tp); in getwinvar()
3770 tabpage_T *tp = NULL; in setwinvar() local
3778 tp = curtab; in setwinvar()
4062 tabpage_T *tp, *oldtabpage; in f_gettabvar() local
4077 if (tp != NULL && varname != NULL) in f_gettabvar()
4082 tp == curtab || tp->tp_firstwin == NULL ? firstwin in f_gettabvar()
4083 : tp->tp_firstwin, tp, TRUE) == OK) in f_gettabvar()
4210 tabpage_T *tp; in f_settabvar() local
[all …]
H A Dpopupwin.c1828 tabpage_T *tp; in popup_terminal_exists() local
1833 FOR_ALL_TABPAGES(tp) in popup_terminal_exists()
1910 if (tp == NULL) in popup_create()
1962 if (tp != NULL) in popup_create()
2697 tabpage_T *tp; in popup_close() local
2900 tabpage_T *tp; in f_popup_list() local
3043 tabpage_T *tp; in f_popup_getoptions() local
3097 FOR_ALL_TABPAGES(tp) in f_popup_getoptions()
3108 if (tp == NULL) in f_popup_getoptions()
3110 else if (tp == curtab) in f_popup_getoptions()
[all …]
H A Dmenu.c2665 menutrans_T *tp; in ex_menutranslate() local
2677 tp = (menutrans_T *)menutrans_ga.ga_data; in ex_menutranslate()
2680 vim_free(tp[i].from); in ex_menutranslate()
2681 vim_free(tp[i].from_noamp); in ex_menutranslate()
2682 vim_free(tp[i].to); in ex_menutranslate()
2706 tp = (menutrans_T *)menutrans_ga.ga_data; in ex_menutranslate()
2718 tp[menutrans_ga.ga_len].from = from; in ex_menutranslate()
2720 tp[menutrans_ga.ga_len].to = to; in ex_menutranslate()
2766 if (STRNICMP(name, tp[i].from, len) == 0 && tp[i].from[len] == NUL) in menutrans_lookup()
2767 return tp[i].to; in menutrans_lookup()
[all …]
H A Dscreen.c2597 tabpage_T *tp; in screenalloc() local
2653 FOR_ALL_TAB_WINDOWS(tp, wp) in screenalloc()
2662 FOR_ALL_TABPAGES(tp) in screenalloc()
2708 FOR_ALL_TABPAGES(tp) in screenalloc()
4384 tabpage_T *tp; in draw_tabline() local
4445 FOR_ALL_TABPAGES(tp) in draw_tabline()
4454 for (tp = first_tabpage; tp != NULL && col < Columns - 4; in draw_tabline()
4455 tp = tp->tp_next) in draw_tabline()
4469 if (tp == curtab) in draw_tabline()
4476 cwp = tp->tp_curwin; in draw_tabline()
[all …]
H A Dtag.c4003 tagptrs_T tp; in get_tags() local
4012 parse_match(matches[i], &tp); in get_tags()
4013 is_static = test_for_static(&tp); in get_tags()
4027 full_fname = tag_full_fname(&tp); in get_tags()
4028 if (add_tag_field(dict, "name", tp.tagname, tp.tagname_end) == FAIL in get_tags()
4032 tp.command_end) == FAIL in get_tags()
4034 tp.tagkind_end) == FAIL in get_tags()
4040 if (tp.command_end != NULL) in get_tags()
4042 for (p = tp.command_end + 3; in get_tags()
4045 if (p == tp.tagkind || (p + 5 == tp.tagkind in get_tags()
[all …]
H A Dspellfile.c2201 hashtab_T *tp; in spell_read_aff() local
3260 char_u *tp; in process_compflags() local
3285 *tp++ = *p++; in process_compflags()
3316 *tp++ = id; in process_compflags()
3323 *tp = NUL; in process_compflags()
4721 wordnode_T *tp; in node_compress() local
4751 for (tp = HI2WN(hi); tp != NULL; tp = tp->wn_u2.next) in node_compress()
4757 ++tp->wn_refs; in node_compress()
4759 np->wn_child = tp; in node_compress()
4762 if (tp == NULL) in node_compress()
[all …]
H A Dex_docmd.c1681 tabpage_T *tp; in current_tab_nr() local
1687 if (tp == tab) in current_tab_nr()
5852 if (tp == NULL) in ex_win_close()
5975 tabpage_T *tp; in ex_tabclose() local
5991 if (tp == NULL) in ex_tabclose()
5996 if (tp != curtab) in ex_tabclose()
6013 tabpage_T *tp; in ex_tabonly() local
6090 if (!valid_tabpage(tp) || tp->tp_firstwin == wp) in tabpage_close_other()
6689 tabpage_T *tp; in ex_tabs() local
6695 for (tp = first_tabpage; tp != NULL && !got_int; tp = tp->tp_next) in ex_tabs()
[all …]
H A Dgui_motif.c269 tabpage_T *tp; in tabline_balloon_cb() local
275 tp = find_tabpage(nr); in tabline_balloon_cb()
276 if (tp == NULL) in tabline_balloon_cb()
279 get_tabline_label(tp, TRUE); in tabline_balloon_cb()
3262 tabpage_T *tp; in gui_mch_update_tabline() local
3278 for (tp = first_tabpage; tp != NULL; tp = tp->tp_next, ++nr) in gui_mch_update_tabline()
3280 if (tp == curtab) in gui_mch_update_tabline()
3311 get_tabline_label(tp, FALSE); in gui_mch_update_tabline()
H A Darglist.c221 tabpage_T *tp; in alist_slash_adjust() local
226 FOR_ALL_TAB_WINDOWS(tp, wp) in alist_slash_adjust()
335 tabpage_T *tp; in alist_check_arg_idx() local
337 FOR_ALL_TAB_WINDOWS(tp, win) in alist_check_arg_idx()
H A Dmain.c1572 tabpage_T *tp; in getout() local
1579 for (tp = first_tabpage; tp != NULL; tp = next_tp) in getout()
1581 next_tp = tp->tp_next; in getout()
1582 FOR_ALL_WINDOWS_IN_TAB(tp, wp) in getout()
/vim-8.2.3635/src/proto/
H A Dwindow.pro18 void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp);
20 win_T *winframe_remove(win_T *win, int *dirp, tabpage_T *tp);
27 void free_tabpage(tabpage_T *tp);
36 void goto_tabpage_tp(tabpage_T *tp, int trigger_enter_autocmds, int trigger_leave_autocmds);
38 void goto_tabpage_win(tabpage_T *tp, win_T *wp);
43 win_T *win_vert_neighbor(tabpage_T *tp, win_T *wp, int up, long count);
44 win_T *win_horz_neighbor(tabpage_T *tp, win_T *wp, int left, long count);
50 void win_remove(win_T *wp, tabpage_T *tp);
82 int get_tab_number(tabpage_T *tp);
H A Devalwindow.pro5 win_T *find_win_by_nr(typval_T *vp, tabpage_T *tp);
35 int switch_win(win_T **save_curwin, tabpage_T **save_curtab, win_T *win, tabpage_T *tp, int no_disp…
36 int switch_win_noblock(win_T **save_curwin, tabpage_T **save_curtab, win_T *win, tabpage_T *tp, int…
H A Dgetchar.pro33 void save_typeahead(tasave_T *tp);
34 void restore_typeahead(tasave_T *tp, int overwrite);
/vim-8.2.3635/runtime/ftplugin/
H A Dcontext.vim87 fun! s:tp()
95 onoremap <silent><buffer> tp :<c-u>call <sid>tp()<cr> map
97 vnoremap <silent><buffer> tp <esc>:<c-u>call <sid>tp()<cr> map
105 let b:undo_ftplugin .= " | sil! exe 'ounmap <buffer> tp' | sil! exe 'vunmap <buffer> tp'" .

123