summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-08 07:30:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-08 07:30:01 -0700
commit9b2b5892cbcd6b78e3a96678581f0c8c24f7d6bb (patch)
tree8b3b4b5377ae935b69c57543014f9b208160032c /parser.c
parentab29ab49cc6f3a5227e0b961a8d2e91a42c44c54 (diff)
downloadtxr-9b2b5892cbcd6b78e3a96678581f0c8c24f7d6bb.tar.gz
txr-9b2b5892cbcd6b78e3a96678581f0c8c24f7d6bb.tar.bz2
txr-9b2b5892cbcd6b78e3a96678581f0c8c24f7d6bb.zip
linenoise: expand tabs to spaces instead of ^I.
* linenoise/linenoise.c (LINENOISE_MAX_LINE): Reduced to 1024. (LINENOISE_MAX_DISP): Now 8 times LINENOISE_MAX_LINE because the worst case is that the line contains only tabs, which expand to eight spaces. (sync_data_to_buf): Use character constants instead of hard coded values. Check for tab, and expand to spaces up to the next modulo 8 tab position.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions