Permalink
Browse files

fix rebox-space with EOL space trimming

  • Loading branch information...
1 parent feb0e59 commit 28db3b99926a4f1c8ba96829efb5158fc2556302 Le Wang committed Nov 3, 2012
Showing with 10 additions and 3 deletions.
  1. +10 −3 rebox2.el
View
@@ -12,9 +12,9 @@
;; Created: Mon Jan 10 22:22:32 2011 (+0800)
;; Version: 0.7
-;; Last-Updated: Sun Oct 28 15:26:50 2012 (+0800)
+;; Last-Updated: Sat Nov 3 21:10:26 2012 (+0800)
;; By: Le Wang
-;; Update #: 464
+;; Update #: 467
;; URL: https://github.com/lewang/rebox2
;; Keywords:
;; Compatibility: GNU Emacs 23.2
@@ -1927,7 +1927,14 @@ The narrowed buffer should contain only whole lines, otherwise it will look stra
(curr-sw (gethash :sw curr-h))
(curr-ss (gethash :ss curr-h))
(curr-se (gethash :se curr-h))
- (unindent-count (+ previous-margin (length previous-ww)))
+ (unindent-count (+ previous-margin (if
+ ;; if there is only a left
+ ;; border, take spaces at EOL
+ ;; trimming into account
+ (and previous-ee
+ previous-nn)
+ (length previous-ww)
+ (length (rebox-rstrip previous-ww)))))
title-plist)

0 comments on commit 28db3b9

Please sign in to comment.