Commit 5b8391ea authored by Peter Stiernström's avatar Peter Stiernström

Force reset for Enhanced ruby mode

This is a workaround for #73.
parent 3a4a7f11
......@@ -3,7 +3,7 @@
;; Copyright (C) 2014 Peter Stiernström
;; Author: Peter Stiernström <peter@stiernstrom.se>
;; Version: 4.8
;; Version: 4.9
;; URL: https://gitlab.com/pidu/git-timemachine
;; Keywords: git
;; Package-Requires: ((emacs "24.3"))
......@@ -237,7 +237,13 @@ When passed a GIT-BRANCH, lists revisions from that branch."
(setq git-timemachine-revision revision)
(goto-char current-position)
(when git-timemachine-show-minibuffer-details
(git-timemachine--show-minibuffer-details revision)))))
(git-timemachine--show-minibuffer-details revision))
(git-timemachine--erm-workaround))))
(defun git-timemachine--erm-workaround ()
"Workaround for enhanced ruby mode not detecting revision change."
(when (eq major-mode 'enh-ruby-mode)
(ignore-errors (erm-reset-buffer))))
(defun git-timemachine--show-minibuffer-details (revision)
"Show details for REVISION in minibuffer."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment