Fix https://github.com/icsharpcode/AvalonEdit/issues/1
Merge pull request #2 from lawrencejohnston/master

Fix https://github.com/icsharpcode/AvalonEdit/issues/1