1
0
Fork 0

Added more specific editor values for the prompt

[ticket: X]
pull/666/head
Chauncey Garrett 12 years ago
parent 146f3e4e3a
commit b06a5de4dd

@ -87,9 +87,11 @@ function editor-info {
if [[ "$KEYMAP" == 'vicmd' ]]; then if [[ "$KEYMAP" == 'vicmd' ]]; then
zstyle -s ':prezto:module:editor:info:keymap:alternate' format 'REPLY' zstyle -s ':prezto:module:editor:info:keymap:alternate' format 'REPLY'
editor_info[keymap]="$REPLY" editor_info[keymap]="$REPLY"
editor_info[alternate]="$REPLY"
else else
zstyle -s ':prezto:module:editor:info:keymap:primary' format 'REPLY' zstyle -s ':prezto:module:editor:info:keymap:primary' format 'REPLY'
editor_info[keymap]="$REPLY" editor_info[keymap]="$REPLY"
editor_info[primary]="$REPLY"
if [[ "$ZLE_STATE" == *overwrite* ]]; then if [[ "$ZLE_STATE" == *overwrite* ]]; then
zstyle -s ':prezto:module:editor:info:keymap:primary:overwrite' format 'REPLY' zstyle -s ':prezto:module:editor:info:keymap:primary:overwrite' format 'REPLY'
@ -97,6 +99,7 @@ function editor-info {
else else
zstyle -s ':prezto:module:editor:info:keymap:primary:insert' format 'REPLY' zstyle -s ':prezto:module:editor:info:keymap:primary:insert' format 'REPLY'
editor_info[overwrite]="$REPLY" editor_info[overwrite]="$REPLY"
editor_info[insert]="$REPLY"
fi fi
fi fi

Loading…
Cancel
Save