mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Enabling suggestions should not fetch a suggestion if buffer is empty
This commit is contained in:
parent
7d4a1d9a4a
commit
a2f0ffb122
5 changed files with 77 additions and 7 deletions
|
|
@ -41,6 +41,13 @@ class TerminalSession
|
|||
self
|
||||
end
|
||||
|
||||
def paste_string(str)
|
||||
tmux_command("set-buffer -- '#{str}'")
|
||||
tmux_command("paste-buffer -dpr -t 0")
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
def content(esc_seqs: false)
|
||||
cmd = 'capture-pane -p -t 0'
|
||||
cmd += ' -e' if esc_seqs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue