1
0
Fork 0

bug fix: segmentation default

This commit is contained in:
Esteban Lombeyda 2014-03-27 12:31:00 +01:00
parent 8f8e9583d8
commit 621a63dc9f
1 changed files with 3 additions and 3 deletions

View File

@ -1132,11 +1132,11 @@ static void showBuffer(struct current * current, size_t pchars) {
if(current->chars <= free_chars) {
outputChars(current, buf, buf_len);
} else {
size_t number_lines = new_line_numbers(current->pos, current->cols, pchars);
size_t number_lines = new_line_numbers(current->chars, current->cols, pchars);
int i;
outputChars(current, buf, buf_len);
outputChars(current, buf, free_chars);
// newLine(current);
buf = buf + buf_len;
buf = buf + free_chars;
for(i=1; i<= number_lines-1; i++) {
outputChars(current, buf, current->cols);
// newLine(current);