Long history entries are truncated to COLUMNS-6

This commit is contained in:
Sebastian Gniazdowski 2016-05-22 13:02:16 +02:00
parent 6b8eb93ea6
commit 47eacda735

View file

@ -65,6 +65,8 @@ _zhcw_main() {
# All entries should have multilines replaced
disp_list=( "${(@)disp_list//$'\n'/\\n}" )
# ... and truncated to display width
disp_list=( "${(@)disp_list/(#m)*/${MATCH[1,COLUMNS-6]}}" )
disp_list[on_page_idx]="> ${disp_list[on_page_idx]} <"