diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-08 07:30:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-08 07:30:01 -0700 |
commit | 9b2b5892cbcd6b78e3a96678581f0c8c24f7d6bb (patch) | |
tree | 8b3b4b5377ae935b69c57543014f9b208160032c /parser.c | |
parent | ab29ab49cc6f3a5227e0b961a8d2e91a42c44c54 (diff) | |
download | txr-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