Permalink
Browse files

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

  • Loading branch information...
1 parent e215e1b commit aa4ac864815f97cb4a5ea8720de7b5dc717fb845 @kawaguchi committed Oct 4, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 jaunte.el
View
@@ -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))

0 comments on commit aa4ac86

Please sign in to comment.