Enabling suggestions should not fetch a suggestion if buffer is empty

This commit is contained in:
Eric Freese
2017-03-04 17:04:04 -05:00
parent 7d4a1d9a4a
commit a2f0ffb122
5 changed files with 77 additions and 7 deletions

View File

@@ -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