Lines Matching refs:pos
28 pos_T pos, tpos; in findsent() local
37 pos = curwin->w_cursor; in findsent()
45 prev_pos = pos; in findsent()
50 if (gchar_pos(&pos) == NUL) in findsent()
53 if ((*func)(&pos) == -1) in findsent()
55 while (gchar_pos(&pos) == NUL); in findsent()
63 else if (dir == FORWARD && pos.col == 0 && in findsent()
64 startPS(pos.lnum, NUL, FALSE)) in findsent()
66 if (pos.lnum == curbuf->b_ml.ml_line_count) in findsent()
68 ++pos.lnum; in findsent()
72 decl(&pos); in findsent()
76 while (c = gchar_pos(&pos), VIM_ISWHITE(c) in findsent()
79 tpos = pos; in findsent()
92 decl(&pos); in findsent()
96 startlnum = pos.lnum; in findsent()
101 c = gchar_pos(&pos); in findsent()
102 if (c == NUL || (pos.col == 0 && startPS(pos.lnum, NUL, FALSE))) in findsent()
104 if (dir == BACKWARD && pos.lnum != startlnum) in findsent()
105 ++pos.lnum; in findsent()
110 tpos = pos; in findsent()
120 pos = tpos; in findsent()
121 if (gchar_pos(&pos) == NUL) // skip NUL at EOL in findsent()
122 inc(&pos); in findsent()
126 if ((*func)(&pos) == -1) in findsent()
136 while (!noskip && ((c = gchar_pos(&pos)) == ' ' || c == '\t')) in findsent()
137 if (incl(&pos) == -1) in findsent()
140 if (EQUAL_POS(prev_pos, pos)) in findsent()
143 if ((*func)(&pos) == -1) in findsent()
154 curwin->w_cursor = pos; in findsent()
687 pos_T pos; in current_word() local
817 pos = curwin->w_cursor; // save cursor position in current_word()
830 curwin->w_cursor = pos; // put cursor back at end in current_word()
857 pos_T pos; in current_sent() local
864 pos = start_pos; in current_sent()
883 decl(&pos); in current_sent()
884 while (LT_POS(pos, curwin->w_cursor)) in current_sent()
886 c = gchar_pos(&pos); in current_sent()
892 incl(&pos); in current_sent()
924 incl(&pos); in current_sent()
927 if (!EQUAL_POS(pos, curwin->w_cursor)) in current_sent()
930 while (LT_POS(pos, curwin->w_cursor)) in current_sent()
932 c = gchar_pos(&pos); in current_sent()
938 incl(&pos); in current_sent()
959 while (c = gchar_pos(&pos), VIM_ISWHITE(c)) // VIM_ISWHITE() is a macro in current_sent()
960 incl(&pos); in current_sent()
961 if (EQUAL_POS(pos, curwin->w_cursor)) in current_sent()
1041 pos_T *pos = NULL; in current_block() local
1082 if ((pos = findmatch(NULL, what)) != NULL) in current_block()
1086 if ((pos = findmatch(NULL, what)) == NULL) in current_block()
1088 curwin->w_cursor = *pos; in current_block()
1089 start_pos = *pos; // the findmatch for end_pos will overwrite *pos in current_block()
1096 if ((pos = findmatchlimit(NULL, what, FM_FORWARD, 0)) == NULL) in current_block()
1098 curwin->w_cursor = *pos; in current_block()
1099 start_pos = *pos; // the findmatch for end_pos will overwrite *pos in current_block()
1108 if (pos == NULL || (end_pos = findmatch(NULL, other)) == NULL) in current_block()
1142 if ((pos = findmatch(NULL, what)) == NULL) in current_block()
1147 start_pos = *pos; in current_block()
1148 curwin->w_cursor = *pos; in current_block()
1202 pos_T pos; in in_html_tag() local
1237 pos.lnum = curwin->w_cursor.lnum; in in_html_tag()
1238 pos.col = (colnr_T)(p - line); in in_html_tag()
1252 if (inc(&pos) < 0) in in_html_tag()
1254 c = *ml_get_pos(&pos); in in_html_tag()