Lines Matching refs:co

787 static int next_column(char c, int co)  in next_column()  argument
790 co = next_tabstop(co); in next_column()
792 co++; // display as ^X, use 2 columns in next_column()
793 return co + 1; in next_column()
799 int co = 0; in get_column() local
802 co = next_column(*r, co); in get_column()
803 return co; in get_column()
812 static void new_screen(int ro, int co) in new_screen() argument
817 screensize = ro * co + 8; in new_screen()
828 s += co; in new_screen()
838 int cnt, ro, co; in sync_cursor() local
881 co = 0; in sync_cursor()
885 co = next_column(*tp, co) - 1; in sync_cursor()
888 co++; in sync_cursor()
891 } while (tp++ < d && ++co); in sync_cursor()
906 if (co < 0 + offset) { in sync_cursor()
907 offset = co; in sync_cursor()
909 if (co >= columns + offset) { in sync_cursor()
910 offset = co - columns + 1; in sync_cursor()
917 co -= offset; in sync_cursor()
920 *col = co; in sync_cursor()
927 int co; in format_line() local
932 co = 0; in format_line()
933 while (co < columns + tabstop) { in format_line()
946 while ((co % tabstop) != (tabstop - 1)) { in format_line()
947 dest[co++] = c; in format_line()
950 dest[co++] = '^'; in format_line()
958 dest[co++] = c; in format_line()
961 if (ofs >= tabstop && co >= tabstop) { in format_line()
962 memmove(dest, dest + tabstop, co); in format_line()
963 co -= tabstop; in format_line()
970 if (co < ofs) in format_line()
971 ofs = co; in format_line()
973 co -= ofs; in format_line()
976 if (co < columns) in format_line()
977 memset(&dest[co], ' ', columns - co); in format_line()
1829 int co; in move_to_col() local
1832 co = 0; in move_to_col()
1836 co = next_column(*p, co); in move_to_col()
1837 } while (co <= l && p++ < end); in move_to_col()