• Martin Blix Grydeland's avatar
    Fix buffer underflow in _vsb_indent · 2b85c12f
    Martin Blix Grydeland authored
    If s_indent > 0 and the buffer is empty, it would check s_buf[-1] for
    the '\n' character.
    
    Now it will indent either on previous character being a newline, or on
    empty buffer. This allows indenting also the very first line of a
    buffer.
    2b85c12f
vsb.c 11.4 KB