diff options
author | Ludovic Court`es | 2007-06-29 11:43:30 +0000 |
---|---|---|
committer | Ludovic Court`es | 2007-06-29 11:43:30 +0000 |
commit | 0f6d19ec622daef4b8f046c79c42885eac2f4df6 (patch) | |
tree | e0f4eb8992e966be46253f7ef70795c91dd3ad4a /src | |
parent | 0987800d0caf8371a2b25e285e233bd5e7e66aec (diff) | |
parent | e926e7b014d2586f5d53f75a43df5b150823d574 (diff) | |
download | skribilo-0f6d19ec622daef4b8f046c79c42885eac2f4df6.tar.gz skribilo-0f6d19ec622daef4b8f046c79c42885eac2f4df6.tar.lz skribilo-0f6d19ec622daef4b8f046c79c42885eac2f4df6.zip |
`diff' package: Small bug fix.
* src/guile/skribilo/package/diff.scm (make-diff-document): Don't use
`ast-loc' when AST2 is not `ast?'.
git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-122
Diffstat (limited to 'src')
-rw-r--r-- | src/guile/skribilo/package/diff.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guile/skribilo/package/diff.scm b/src/guile/skribilo/package/diff.scm index fe509b7..2d634ec 100644 --- a/src/guile/skribilo/package/diff.scm +++ b/src/guile/skribilo/package/diff.scm @@ -367,7 +367,8 @@ (unchanged :loc (ast-loc ast2) ast1)) (else - (insertion :loc (ast-loc ast2) ast2))))) + (let ((loc (and (ast? ast2) (ast-loc ast2)))) + (insertion :loc loc ast2)))))) |