Update is_readonly

pull/522/head
Arijit Basu 2 years ago committed by Arijit Basu
parent 2b5755aa8a
commit 7b8f38df5b

@ -1561,10 +1561,10 @@ xplr.config.modes.builtin.create_file = {
if [ "$PTH" ]; then
mkdir -p -- "$(dirname $PTH)" \
&& touch -- "$PTH" \
&& printf "SetInputBuffer: ''\0" >> "${XPLR_PIPE_MSG_IN:?}" \
&& printf "LogSuccess: %s\0" "$PTH created" >> "${XPLR_PIPE_MSG_IN:?}" \
&& printf "ExplorePwd\0" >> "${XPLR_PIPE_MSG_IN:?}" \
&& printf "FocusPath: %s\0" "$PTH" >> "${XPLR_PIPE_MSG_IN:?}"
&& printf 'SetInputBuffer: ""\0' >> "${XPLR_PIPE_MSG_IN:?}" \
&& printf 'LogSuccess: "%s"\0' "$PTH_ESC created" >> "${XPLR_PIPE_MSG_IN:?}" \
&& printf 'ExplorePwd\0' >> "${XPLR_PIPE_MSG_IN:?}" \
&& printf 'FocusPath: "%s"\0' "$PTH_ESC" >> "${XPLR_PIPE_MSG_IN:?}"
else
printf "PopMode\0" >> "${XPLR_PIPE_MSG_IN:?}"
fi

@ -1084,9 +1084,13 @@ impl ExternalMsg {
!matches!(
self,
Self::Call(_)
| Self::Call0(_)
| Self::CallSilently(_)
| Self::Call0Silently(_)
| Self::BashExec(_)
| Self::BashExec0(_)
| Self::BashExecSilently(_)
| Self::BashExec0Silently(_)
| Self::CallLua(_)
| Self::CallLuaSilently(_)
| Self::LuaEval(_)

Loading…
Cancel
Save