Lines Matching refs:pos
78 static void nv_cursormark(cmdarg_T *cap, int flag, pos_T *pos);
2440 pos_T *pos; in find_decl() local
2444 if ((pos = findmatchlimit(NULL, '}', FM_FORWARD, in find_decl()
2446 && pos->lnum < old_pos.lnum) in find_decl()
2450 curwin->w_cursor = *pos; in find_decl()
3210 pos_T pos = curwin->w_cursor; in nv_zet() local
3218 if (len != 0 && curwin->w_cursor.col <= pos.col) in nv_zet()
3220 curwin->w_cursor = pos; in nv_zet()
4489 pos_T *pos = NULL; // init for GCC in nv_brackets() local
4579 if ((pos = findmatchlimit(cap->oap, findc, in nv_brackets()
4588 pos = &new_pos; // use last one found in nv_brackets()
4592 curwin->w_cursor = *pos; in nv_brackets()
4593 new_pos = *pos; in nv_brackets()
4612 pos = &prev_pos; in nv_brackets()
4618 pos = NULL; in nv_brackets()
4626 if (pos == NULL) in nv_brackets()
4639 pos = &new_pos; in nv_brackets()
4647 pos = &new_pos; in nv_brackets()
4650 else if ((pos = findmatchlimit(cap->oap, findc, in nv_brackets()
4655 curwin->w_cursor = *pos; in nv_brackets()
4662 if (pos == NULL && new_pos.lnum != 0) in nv_brackets()
4665 if (pos != NULL) in nv_brackets()
4668 curwin->w_cursor = *pos; in nv_brackets()
4721 pos = &curwin->w_cursor; in nv_brackets()
4724 prev_pos = *pos; in nv_brackets()
4725 pos = getnextmark(pos, cap->cmdchar == '[' ? BACKWARD : FORWARD, in nv_brackets()
4727 if (pos == NULL) in nv_brackets()
4730 if (pos == NULL) in nv_brackets()
4731 pos = &prev_pos; in nv_brackets()
4732 nv_cursormark(cap, cap->nchar == '\'', pos); in nv_brackets()
4804 pos_T *pos; in nv_percent() local
4839 if ((pos = findmatch(cap->oap, NUL)) == NULL) in nv_percent()
4844 curwin->w_cursor = *pos; in nv_percent()
5288 pos_T pos; in n_swapchar() local
5309 pos = startpos; in n_swapchar()
5325 ptr = ml_get(pos.lnum); in n_swapchar()
5326 count = (int)STRLEN(ptr) - pos.col; in n_swapchar()
5327 netbeans_removed(curbuf, pos.lnum, pos.col, in n_swapchar()
5329 netbeans_inserted(curbuf, pos.lnum, pos.col, in n_swapchar()
5330 &ptr[pos.col], count); in n_swapchar()
5332 pos.col = 0; in n_swapchar()
5333 pos.lnum++; in n_swapchar()
5352 ptr = ml_get(pos.lnum); in n_swapchar()
5353 count = curwin->w_cursor.col - pos.col; in n_swapchar()
5354 netbeans_removed(curbuf, pos.lnum, pos.col, (long)count); in n_swapchar()
5355 netbeans_inserted(curbuf, pos.lnum, pos.col, &ptr[pos.col], count); in n_swapchar()
5377 nv_cursormark(cmdarg_T *cap, int flag, pos_T *pos) in nv_cursormark() argument
5379 if (check_mark(pos) == FAIL) in nv_cursormark()
5388 curwin->w_cursor = *pos; in nv_cursormark()
5519 pos_T *pos; in nv_gomark() local
5530 pos = getmark(c, (cap->oap->op_type == OP_NOP)); in nv_gomark()
5531 if (pos == (pos_T *)-1) // jumped to other file in nv_gomark()
5542 nv_cursormark(cap, cap->arg, pos); in nv_gomark()
5550 && pos != NULL in nv_gomark()
5551 && (pos == (pos_T *)-1 || !EQUAL_POS(old_cursor, *pos)) in nv_gomark()
5565 pos_T *pos; in nv_pcmark() local
5580 pos = movechangelist((int)cap->count1); in nv_pcmark()
5582 pos = movemark((int)cap->count1); in nv_pcmark()
5583 if (pos == (pos_T *)-1) // jump to other file in nv_pcmark()
5588 else if (pos != NULL) // can jump in nv_pcmark()
5589 nv_cursormark(cap, FALSE, pos); in nv_pcmark()
5603 && (pos == (pos_T *)-1 || lnum != curwin->w_cursor.lnum) in nv_pcmark()