diff options
author | Erich Eckner <git@eckner.net> | 2018-02-25 17:37:57 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-25 17:37:57 +0100 |
commit | f73f06bea68bf7fafcb79e70819f863bdcbc3013 (patch) | |
tree | 470c19257203f8d239abe510607c6f219604b043 | |
parent | 5db4b32d240b4a67166bc56f2c713bf9512e1544 (diff) | |
download | show-irc-log-f73f06bea68bf7fafcb79e70819f863bdcbc3013.tar.xz |
show-irc-log: bugfix
-rwxr-xr-x | show-irc-log | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/show-irc-log b/show-irc-log index 185417c..5b00fcf 100755 --- a/show-irc-log +++ b/show-irc-log @@ -44,14 +44,15 @@ sed -n ' done sed ' - s@\(\([|:]\).\{'"$((50-cols))"'\}\)\(.\)@\1\n\2 \3@ + s@\(\([|:]\).\{'"$((50-cols))"'\}\)\(.\)@\1\n \2 \3@ P D ' "${tmp_dir}/input" | \ sed ' s/^[^|:]*$/| \0/ :a - /^.\{'"$((cols-1))"'\}[|:]/b + /^ \{'"$((cols-1))"'\}[|:]/b + /^\S[^|]\{'"$((cols-2))"'\}[|:]/b s/[|:]/ \0/ ba ' |