diff --git a/README-ja_JP.md b/README-ja_JP.md index ab23583d..fcffda14 100644 --- a/README-ja_JP.md +++ b/README-ja_JP.md @@ -244,7 +244,7 @@ $ ble-bind -L コマンドラインに改行が含まれている場合、複数行モード (MULTILINE モード) になります。 -C-v RET または C-q RET とすると改行をコマンドラインの一部として入力できます。 +C-v C-j または C-q C-j とすると改行をコマンドラインの一部として入力できます。 複数行モードでは、RET (C-m) はコマンドの実行ではなく新しい改行の挿入になります。 複数行モードでは、C-j を用いてコマンドを実行して下さい。 diff --git a/README.md b/README.md index cb8162f9..a6eb9815 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ $ ble-bind -L When the command line string contains a newline character, `ble.sh` enters the MULTILINE mode. -By typing C-v RET or C-q RET, you can insert a newline character in the command line string. +By typing C-v C-j or C-q C-j, you can insert a newline character in the command line string. In the MULTILINE mode, RET (C-m) causes insertion of a new newline character. In the MULTILINE mode, the command can be executed by typing C-j. diff --git a/src/edit.sh b/src/edit.sh index dc9b93a3..53ecac7a 100644 --- a/src/edit.sh +++ b/src/edit.sh @@ -2527,10 +2527,10 @@ function ble/widget/bracketed-paste.hook { return 148 fi - chars=$chars: - chars=${chars//:13:10:/:10:} # CR LF -> LF + chars=:${chars//:/::}: + chars=${chars//:13::10:/:10:} # CR LF -> LF chars=${chars//:13:/:10:} # CR -> LF - chars=(${chars//:/' '}) + ble/string#split-words chars "${chars//:/ }" local proc=$_ble_edit_bracketed_paste_proc _ble_edit_bracketed_paste_proc=