1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Rename variable.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4744 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-09 18:16:50 +00:00 committed by exg
parent b5fe742ace
commit ef47cde2b9

View File

@ -169,7 +169,7 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
unsigned char cmd; unsigned char cmd;
const unsigned char *ptr, *next_ptr, *last_space_ptr; const unsigned char *ptr, *next_ptr, *last_space_ptr;
int xpos, pos, indent_pos, last_space, last_color, color, linecount; int xpos, pos, indent_pos, last_space, last_color, color, linecount;
int char_len; int char_width;
g_return_val_if_fail(line->text != NULL, NULL); g_return_val_if_fail(line->text != NULL, NULL);
@ -216,15 +216,15 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
/* MH */ /* MH */
if (term_type != TERM_TYPE_BIG5 || if (term_type != TERM_TYPE_BIG5 ||
ptr[1] == '\0' || !is_big5(ptr[0], ptr[1])) ptr[1] == '\0' || !is_big5(ptr[0], ptr[1]))
char_len = 1; char_width = 1;
else else
char_len = 2; char_width = 2;
next_ptr = ptr+char_len; next_ptr = ptr+char_width;
} else { } else {
read_unichar(ptr, &next_ptr, &char_len); read_unichar(ptr, &next_ptr, &char_width);
} }
if (xpos + char_len > view->width && sub != NULL && if (xpos + char_width > view->width && sub != NULL &&
(last_space <= indent_pos || last_space <= 10) && (last_space <= indent_pos || last_space <= 10) &&
view->longword_noindent) { view->longword_noindent) {
/* long word, remove the indentation from this line */ /* long word, remove the indentation from this line */
@ -232,7 +232,7 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
sub->indent = 0; sub->indent = 0;
} }
if (xpos + char_len > view->width) { if (xpos + char_width > view->width) {
xpos = indent_func == NULL ? indent_pos : xpos = indent_func == NULL ? indent_pos :
indent_func(view, line, -1); indent_func(view, line, -1);
@ -260,7 +260,7 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
continue; continue;
} }
if (!view->utf8 && char_len > 1) { if (!view->utf8 && char_width > 1) {
last_space = xpos; last_space = xpos;
last_space_ptr = next_ptr; last_space_ptr = next_ptr;
last_color = color; last_color = color;
@ -270,7 +270,7 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
last_color = color; last_color = color;
} }
xpos += char_len; xpos += char_width;
ptr = next_ptr; ptr = next_ptr;
} }