HEX
Server: Apache
System: Linux iad1-shared-b8-33 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: samfetchero1 (10301780)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/zsh/functions/Zle/move-line-in-buffer
#autoload

# Line motions that do not leave the current history entry,
# for editing in multi-line buffers.

# To use:
#  autoload -Uz move-line-in-buffer
#  zle -N up-line-in-buffer move-line-in-buffer
#  zle -N down-line-in-buffer move-line-in-buffer
#
# then bindkey as you prefer

local hno=$HISTNO curs=$CURSOR
zle .${WIDGET:s/in-buffer/or-history} "$@" &&
    (( HISTNO != hno && (HISTNO=hno, CURSOR=curs) ))
return 0