commit | d49d4f7b5604a24e5e724cb03454b6f31b036383 | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Fri Dec 23 10:43:15 2016 +0100 |
committer | Benno Schulenberg <bensberg@justemail.net> | Fri Dec 23 10:54:09 2016 +0100 |
tree | 16f171f2b4aac8a8292d399000bebec62d14f29e | |
parent | 2fbb71d555b74ab9ae0ce222a2c00478efcfaa5d [diff] |
history: search items *can* contain newlines -- encoded NUL bytes Decode 0x0A bytes to 0x00 when saving the search history, and encode them again when reading the file back in, to prevent nano from hanging or aborting when encountering 0x00 on a line by itself.