Skip to content

Commit

Permalink
edit: update mc-4.8.29 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Aug 15, 2023
1 parent a2e2c4b commit 2c4194a
Show file tree
Hide file tree
Showing 5 changed files with 333 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- util: work around mawk 1.3.3-20090705 regex (reported by dongxi8, Frezrik) `#D2055` 4089c4e1
- complete: update a workaround for cobra-1.5.0 (reported by 3ximus) `#D2057` a24435d3
- make: work around ecryptfs bug (reported by juanejot) `#D2058` 969a763e dc0cdb30
- edit: update mc-4.8.29 integration (reported by mooreye) `#D2062` xxxxxxxx

## Contrib

Expand Down
8 changes: 8 additions & 0 deletions lib/keymap.vi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,14 @@ function ble/keymap:vi/update-mode-indicator {
str=$str${str:+' '}$'\e[1;31mREC\e[m'
fi

# Note #D2062: mc-4.8.29 以降ではコマンド終了直後に "-- INSERT --" 等の mode
# indicator を出力すると、それをプロンプトと勘違いして抽出してしまう。仕方が
# ないので mc の中では imap に対しては mode indicator は表示しない様にする。
if [[ $_ble_edit_integration_mc_precmd_stop && $keymap == vi_imap ]]; then
ble/edit/info/clear
return
fi

ble/edit/info/default ansi "$str" # 6ms
}
blehook internal_PRECMD!=ble/keymap:vi/update-mode-indicator
Expand Down
Loading

0 comments on commit 2c4194a

Please sign in to comment.