{prev,next}d-or-*-word: Fix for multiple lines

Fixes #2333
This commit is contained in:
Fabian Homborg 2015-08-26 21:30:04 +02:00
parent 7bfad18ec7
commit 47b9993469
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
function nextd-or-forward-word function nextd-or-forward-word
if test -z (commandline) set -l cmd (commandline)
if test -z "$cmd"
nextd nextd
commandline -f repaint commandline -f repaint
else else

View file

@ -1,5 +1,6 @@
function prevd-or-backward-word function prevd-or-backward-word
if test -z (commandline) set -l cmd (commandline)
if test -z "$cmd"
prevd prevd
commandline -f repaint commandline -f repaint
else else