Lines Matching refs:cost
3106 int cost; in windgoto() local
3169 cost = (screen_cur_col - col) * (int)STRLEN(bs); in windgoto()
3171 cost = 999; in windgoto()
3172 if (col + 1 < cost) // using CR is less characters in windgoto()
3176 cost = 1; // CR is just one character in windgoto()
3185 cost += noinvcurs; in windgoto()
3197 cost = (row - screen_cur_row) * 2; // CR LF in windgoto()
3200 cost += noinvcurs; in windgoto()
3212 cost = 0; in windgoto()
3221 cost += i; in windgoto()
3222 if (cost < goto_cost && i > 0) in windgoto()
3238 cost += noinvcurs; in windgoto()
3243 cost = 999; // different attributes, don't do it in windgoto()
3251 cost = 999; in windgoto()
3260 if (cost < goto_cost) in windgoto()
3325 cost = 999; in windgoto()
3327 if (cost >= goto_cost) in windgoto()