/macosx-10.10/vim-55/src/ |
H A D | move.c | 127 * Update curwin->w_topline and redraw if necessary. 139 * Update curwin->w_topline to move the cursor onto the screen. 163 check_cursor_moved(curwin); 164 if (curwin->w_valid & VALID_TOPLINE) 173 old_topline = curwin->w_topline; 175 old_topfill = curwin->w_topfill; 183 if (curwin->w_topline != 1) 185 curwin->w_topline = 1; 186 curwin->w_botline = 2; 187 curwin [all...] |
H A D | mark.c | 49 return setmark_pos(c, &curwin->w_cursor, curbuf->b_fnum); 71 if (pos == &curwin->w_cursor) 75 curwin->w_prev_pcmark = curwin->w_pcmark; 78 curwin->w_pcmark = *pos; 143 curwin->w_prev_pcmark = curwin->w_pcmark; 144 curwin->w_pcmark = curwin->w_cursor; 153 if (curwin [all...] |
H A D | normal.c | 574 int old_col = curwin->w_curswant; 892 if (curwin->w_p_rl && KeyTyped && !KeyStuffed 1164 old_pos = curwin->w_cursor; /* remember where cursor was */ 1235 && old_pos.lnum == curwin->w_cursor.lnum 1236 && old_pos.col == curwin->w_cursor.col) 1333 if (curwin->w_p_scb && toplevel) 1341 if (curwin->w_p_crb && toplevel) 1432 old_cursor = curwin->w_cursor; 1520 oap->start = curwin->w_cursor; 1521 curwin [all...] |
H A D | popupmnu.c | 76 row = curwin->w_wrow + W_WINROW(curwin); 107 if (curwin->w_wrow - curwin->w_cline_row >= 2) 110 context_lines = curwin->w_wrow - curwin->w_cline_row; 133 if (curwin->w_cline_row + curwin->w_cline_height - curwin->w_wrow >= 3) 136 context_lines = curwin [all...] |
H A D | edit.c | 393 Insstart = curwin->w_cursor; 513 if (((ins_at_eol && curwin->w_cursor.lnum == o_lnum) 514 || curwin->w_curswant > curwin->w_virtcol) 515 && *(ptr = ml_get_curline() + curwin->w_cursor.col) != NUL) 518 ++curwin->w_cursor.col; 524 curwin->w_cursor.col += i; 607 /* set curwin->w_curswant for next K_DOWN or K_UP */ 609 curwin->w_set_curswant = TRUE; 652 && curwin [all...] |
H A D | farsi.c | 106 if (p_ri && (curwin->w_cursor.col + 1 345 if (curwin->w_p_rl && p_ri) 348 if ((curwin->w_cursor.col < (colnr_T)STRLEN(ml_get_curline()))) 350 if ((p_ri && curwin->w_cursor.col) || !p_ri) 483 if (curwin->w_cursor.col) 569 if (curwin->w_cursor.col + 1 < (colnr_T)STRLEN(ml_get_curline())) 598 if (curwin->w_cursor.col != 0 && 599 (curwin->w_cursor.col + 1 == (colnr_T)STRLEN(ml_get_curline()))) 602 if (!curwin->w_cursor.col && p_ri) 667 if (curwin [all...] |
H A D | ops.c | 243 block_col = curwin->w_cursor.col; 250 curwin->w_cursor.col = 0; 264 ++curwin->w_cursor.lnum; 272 curwin->w_cursor.lnum = oap->start.lnum; 273 curwin->w_cursor.col = block_col; 279 curwin->w_cursor.lnum = oap->start.lnum; 283 --curwin->w_cursor.lnum; /* put cursor on last line, for ":>" */ 388 int oldcol = curwin->w_cursor.col; 403 block_prep(oap, &bd, curwin->w_cursor.lnum, TRUE); 545 ml_replace(curwin [all...] |
H A D | misc1.c | 293 if (!(flags & SIN_UNDO) || u_savesub(curwin->w_cursor.lnum) == OK) 295 ml_replace(curwin->w_cursor.lnum, newline, FALSE); 297 changed_bytes(curwin->w_cursor.lnum, 0); 299 if (saved_cursor.lnum == curwin->w_cursor.lnum 307 curwin->w_cursor.col = ind_len; 408 ml_replace(curwin->w_cursor.lnum, line, FALSE); 411 curwin->w_cursor.col = ind_len; 436 if (vim_regexec_multi(®match, curwin, curbuf, lnum, 450 getvcol(curwin, &pos, &col, NULL, NULL); 574 if (curwin [all...] |
H A D | search.c | 51 * Highest: do_search(); uses curwin->w_cursor; calls searchit(). 183 if (curwin->w_p_rl && *curwin->w_p_rlc == 's') 1098 pos = curwin->w_cursor; /* start searching at the cursor position */ 1278 if (curwin->w_p_rl && *curwin->w_p_rlc == 's') 1341 if (p_altkeymap && curwin->w_p_rl) 1345 c = searchit(curwin, curbuf, &pos, dirc == '/' ? FORWARD : BACKWARD, 1425 curwin->w_cursor = pos; 1426 curwin [all...] |
H A D | fold.c | 139 return hasFoldingWin(curwin, lnum, firstp, lastp, TRUE, NULL); 261 checkupdate(curwin); 268 if (!hasAnyFolding(curwin)) 271 return foldLevelWin(curwin, lnum); 473 checkupdate(curwin); 474 if (hasAnyFolding(curwin)) 478 (void)setManualFold(curwin->w_cursor.lnum, TRUE, FALSE, &done); 491 newFoldLevelWin(curwin); 494 if (foldmethodIsDiff(curwin) && curwin [all...] |
H A D | ui.c | 433 if (lt(VIsual, curwin->w_cursor)) 436 end = curwin->w_cursor; 444 start = curwin->w_cursor; 2513 if (cmdwin_type != 0 && row < W_WINROW(curwin)) 2535 old_curwin = curwin; 2536 old_cursor = curwin->w_cursor; 2584 && (wp->w_buffer != curwin->w_buffer 2596 + (cmdwin_type == 0 && wp == curwin ? 0 : 1) 2607 if (cmdwin_type != 0 && wp != curwin) 2621 wp = curwin; [all...] |
H A D | buffer.c | 125 curwin->w_valid = 0; 183 curwin->w_cursor.lnum = 1; 184 curwin->w_cursor.col = 0; 239 foldUpdateAll(curwin); 244 if (!(curwin->w_valid & VALID_TOPLINE)) 246 curwin->w_topline = 1; 248 curwin->w_topfill = 0; 283 /* restore curwin/curbuf and a few other things */ 576 if (curwin->w_buffer == buf) 577 clearFolding(curwin); [all...] |
H A D | ex_cmds.c | 158 if (curwin->w_p_rl) 169 save_curpos = curwin->w_cursor; 185 width = W_WIDTH(curwin) - curbuf->b_p_wm; 193 for (curwin->w_cursor.lnum = eap->line1; 194 curwin->w_cursor.lnum <= eap->line2; ++curwin->w_cursor.lnum) 242 curwin->w_cursor = save_curpos; 560 curwin->w_cursor.lnum = eap->line1; 598 save_list = curwin->w_p_list; 599 curwin [all...] |
H A D | window.c | 277 wp = curwin->w_prev; 283 wp = curwin->w_next; 300 for (wp = curwin; wp->w_next != NULL && Prenum1-- > 0; 315 for (wp = curwin; wp->w_prev != NULL && Prenum1-- > 0; 352 wp = curwin; 358 if (curwin == wp) 359 win_close(curwin, FALSE); 439 win_setheight(curwin->w_height + (int)Prenum1); 447 win_setheight(curwin->w_height - (int)Prenum1); 465 win_setwidth(curwin [all...] |
H A D | syntax.c | 460 * it. Careful: curbuf and curwin are likely to point to another buffer and 745 curwin_save = curwin; 746 curwin = wp; 787 curwin = curwin_save; 3341 curwin->w_s->b_syn_conceal = TRUE; 3343 curwin->w_s->b_syn_conceal = FALSE; 3366 curwin->w_s->b_syn_ic = FALSE; 3368 curwin->w_s->b_syn_ic = TRUE; 3390 curwin->w_s->b_syn_spell = SYNSPL_TOP; 3392 curwin [all...] |
H A D | misc2.c | 48 getvvcol(curwin, &curwin->w_cursor, &x, NULL, NULL); 63 pos.lnum = curwin->w_cursor.lnum; 66 getvvcol(curwin, &pos, &x, NULL, NULL); 79 int rc = coladvance2(&curwin->w_cursor, TRUE, FALSE, wcol); 82 curwin->w_valid &= ~VALID_VIRTCOL; 86 curwin->w_valid |= VALID_VIRTCOL; 87 curwin->w_virtcol = wcol; 97 * a curwin->w_cursor.col value (n.b. this is equal to STRLEN(line)), 106 int rc = getvpos(&curwin [all...] |
H A D | gui.c | 1769 if (old_curwin != curwin) 1776 if (force_scrollbar || old_curwin != curwin) 1780 old_curwin = curwin; 2968 col = curwin->w_wcol; 2969 row = curwin->w_wrow + W_WINROW(curwin); 3038 if (curwin->w_topline != gui_prev_topline 3040 || curwin->w_topfill != gui_prev_topfill 3064 gui_prev_topline = curwin->w_topline; 3066 gui_prev_topfill = curwin [all...] |
H A D | quickfix.c | 1446 win_T *oldwin = curwin; 1554 if (qf_ptr->qf_type == 1 && (!curwin->w_buffer->b_help || cmdmod.tab != 0)) 1574 if (cmdmod.split == 0 && curwin->w_width != Columns 1575 && curwin->w_width < 80) 1585 if (curwin->w_height < p_hh) 1591 curwin->w_llist = qi; 1649 ll_ref = curwin->w_llist_ref; 1660 curwin->w_p_scb = FALSE; 1666 curwin->w_llist = ll_ref; 1672 if (curwin [all...] |
H A D | ex_cmds2.c | 476 bp->dbg_lnum = curwin->w_cursor.lnum; 1890 --ALIST(curwin)->al_ga.ga_len; 1891 if (curwin->w_arg_idx > match) 1892 --curwin->w_arg_idx; 1925 alist_set(ALIST(curwin), exp_count, exp_files, FALSE, NULL, 0); 1944 if (win->w_alist == curwin->w_alist) 1947 check_arg_idx(curwin); 2019 alist_unlink(ALIST(curwin)); 2021 ALIST(curwin) = &global_alist; 2053 if (i == curwin [all...] |
H A D | screen.c | 191 redraw_win_later(curwin, type); 284 if (curwin->w_redraw_top == 0 || curwin->w_redraw_top > lnum) 285 curwin->w_redraw_top = lnum; 286 if (curwin->w_redraw_bot == 0 || curwin->w_redraw_bot < lnum) 287 curwin->w_redraw_bot = lnum; 294 i = find_wl_entry(curwin, lnum); 296 curwin->w_lines[i].wl_valid = FALSE; 318 * Based on the current value of curwin [all...] |
H A D | main.c | 635 if (curwin->w_p_rl && p_altkeymap) 639 curwin->w_p_arab = FALSE; /* Reset the Arabic keymap mode */ 837 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; 928 if (curwin->w_p_diff && curwin->w_p_scb) 1120 curwin->w_p_cole > 0 1123 && !equalpos(last_cursormoved, curwin->w_cursor)) 1131 if (curwin->w_p_cole > 0) 1134 conceal_new_cursor_line = curwin->w_cursor.lnum; 1138 last_cursormoved = curwin [all...] |
H A D | ex_docmd.c | 670 prev_line = curwin->w_cursor.lnum; 683 if ((prev_line != curwin->w_cursor.lnum 702 print_line_no_prefix(curwin->w_cursor.lnum, FALSE, FALSE); 1764 && curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) 1999 ea.line2 = curwin->w_cursor.lnum; /* default is current line number */ 2040 curwin->w_cursor.lnum = ea.line2; 2112 curwin->w_cursor.lnum = 1; 2114 curwin->w_cursor.lnum = ea.line2; 2689 if (curwin->w_cursor.lnum == 0) /* can happen with zero line number */ 2690 curwin [all...] |
H A D | diff.c | 618 if (wp != curwin && wp->w_topfill > 0) 809 curwin->w_valid_cursor.lnum = 0; 886 win_T *old_curwin = curwin; 1030 if (curwin != old_curwin && win_valid(old_curwin)) 1033 diff_win_options(curwin, TRUE); 1077 win_T *old_curwin = curwin; 1089 curwin->w_p_diff = TRUE; 1092 if (curwin != old_curwin) /* split must have worked */ 1095 diff_win_options(curwin, TRUE); 1109 diff_win_options(curwin, TRU [all...] |
H A D | tag.c | 135 taggy_T *tagstack = curwin->w_tagstack; 136 int tagstackidx = curwin->w_tagstackidx; 137 int tagstacklen = curwin->w_tagstacklen; 271 curwin->w_tagstacklen = tagstacklen - 1; 274 curwin->w_tagstacklen = tagstacklen; 336 curwin->w_cursor.lnum = saved_fmark.mark.lnum; 341 curwin->w_cursor.lnum = saved_fmark.mark.lnum; 343 curwin->w_cursor.col = saved_fmark.mark.col; 344 curwin->w_set_curswant = TRUE; 461 tagstack[tagstackidx].fmark.mark = curwin [all...] |
/macosx-10.10/emacs-93/emacs/lisp/calc/ |
H A D | calc-trail.el | 80 (let ((curwin (selected-window))) 86 (select-window curwin))))) 90 (let ((curwin (selected-window))) 96 (select-window curwin)))))
|