comparison src/redisplay.c @ 280:7df0dd720c89 r21-0b38

Import from CVS: tag r21-0b38
author cvs
date Mon, 13 Aug 2007 10:32:22 +0200
parents 6330739388db
children c42ec1d1cded
comparison
equal deleted inserted replaced
279:c20b2fb5bb0a 280:7df0dd720c89
6317 break; 6317 break;
6318 6318
6319 /* print the current column */ 6319 /* print the current column */
6320 case 'c': 6320 case 'c':
6321 { 6321 {
6322 int col = current_column (b) + (column_number_start_at_one != 0); 6322 int col = current_column (b) + !!column_number_start_at_one;
6323 int temp = col; 6323 int temp = col;
6324 int size = 2; 6324 int size = 2;
6325 char *buf; 6325 char buf[32];
6326 6326
6327 while (temp >= 10)
6328 {
6329 temp /= 10;
6330 size++;
6331 }
6332
6333 buf = alloca_array (char, size);
6334 long_to_string (buf, col); 6327 long_to_string (buf, col);
6335 6328
6336 Dynarr_add_many (mode_spec_bufbyte_string, 6329 Dynarr_add_many (mode_spec_bufbyte_string,
6337 (CONST Bufbyte *) buf, strlen (buf)); 6330 (CONST Bufbyte *) buf, strlen (buf));
6338 6331