fix off-by-one error when calculating totsize in read_file(), introduced
when totsize was converted to hold the total number of multibyte characters git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2308 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
3eeb823f92
commit
daa533a767
|
@ -296,6 +296,7 @@ void read_file(FILE *f, const char *filename)
|
|||
} else if (fileptr->next == NULL) {
|
||||
filebot = fileptr;
|
||||
new_magicline();
|
||||
totsize--;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue