Codebase list mruby / d0727be
Merge pull request #3054 from kazuho/kazuho/adjust-column-offset-in-peekc_n fix miscalculation of column number in `peekc_n` Yukihiro "Matz" Matsumoto 8 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
34723472 do {
34733473 c0 = nextc(p);
34743474 if (c0 == -1) return c0; /* do not skip partial EOF */
3475 if (c0 >= 0) --p->column;
34753476 list = push(list, (node*)(intptr_t)c0);
34763477 } while(n--);
34773478 if (p->pb) {