mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
Long history entries are truncated to COLUMNS-6
This commit is contained in:
parent
6b8eb93ea6
commit
47eacda735
1 changed files with 2 additions and 0 deletions
|
@ -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]} <"
|
||||
|
||||
|
|
Loading…
Reference in a new issue