Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

全角文字にオーバーレイをかぶせた時のレイアウトのズレを最小に

  • Loading branch information...
commit aa4ac864815f97cb4a5ea8720de7b5dc717fb845 1 parent e215e1b
@kawaguchi authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 jaunte.el
View
4 jaunte.el
@@ -120,6 +120,10 @@
(setq rest (- rest (char-width (char-after))))
(forward-char))
+ (if (and (oddp width)
+ (= 2 (char-width (char-before))))
+ (setq key (concat key " ")))
+
(setq overlay (make-overlay begin (point)))
(overlay-put overlay 'display (propertize key 'face (jaunte-cycle 'jaunte-hint-faces)))
(overlay-put overlay 'window (selected-window))
Please sign in to comment.
Something went wrong with that request. Please try again.