Lines Matching refs:cx
116 int cx,cy; /* Cursor x and y position in characters */
719 int filecol = E.coloff+E.cx;
730 if (E.cx == E.screencols-1)
733 E.cx++;
741 int filecol = E.coloff+E.cx;
770 E.cx = 0;
777 int filecol = E.coloff+E.cx;
792 E.cx = filecol;
793 if (E.cx >= E.screencols) {
794 int shift = (E.screencols-E.cx)+1;
795 E.cx -= shift;
800 if (E.cx == 0 && E.coloff)
803 E.cx--;
1000 * at which the cursor is displayed may be different compared to 'E.cx'
1003 int cx = 1;
1007 for (j = E.coloff; j < (E.cx+E.coloff); j++) {
1008 if (j < row->size && row->chars[j] == TAB) cx += 7-((cx)%8);
1009 cx++;
1012 snprintf(buf,sizeof(buf),"\x1b[%d;%dH",E.cy+1,cx);
1049 int saved_cx = E.cx, saved_cy = E.cy;
1063 E.cx = saved_cx; E.cy = saved_cy;
1113 E.cx = match_offset;
1117 if (E.cx > E.screencols) {
1118 int diff = E.cx - E.screencols;
1119 E.cx -= diff;
1132 int filecol = E.coloff+E.cx;
1138 if (E.cx == 0) {
1144 E.cx = E.row[filerow-1].size;
1145 if (E.cx > E.screencols-1) {
1146 E.coloff = E.cx-E.screencols+1;
1147 E.cx = E.screencols-1;
1152 E.cx -= 1;
1157 if (E.cx == E.screencols-1) {
1160 E.cx += 1;
1163 E.cx = 0;
1189 /* Fix cx if the current line has not enough chars. */
1191 filecol = E.coloff+E.cx;
1195 E.cx -= filecol-rowlen;
1196 if (E.cx < 0) {
1197 E.coloff += E.cx;
1198 E.cx = 0;
1280 E.cx = 0;