diff options
| author | blais <blais@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-10-31 00:32:13 +0000 |
|---|---|---|
| committer | blais <blais@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-10-31 00:32:13 +0000 |
| commit | c2c4c2c253bb89375e71288cba91ef28c6d10046 (patch) | |
| tree | 78dd697fb01a8f12fb81d413db4739d10bbc03bd /tools | |
| parent | c5d1c54efe5b99787489f44e9fc60c78cb465e50 (diff) | |
| download | docutils-c2c4c2c253bb89375e71288cba91ef28c6d10046.tar.gz | |
Fixed minor bug with underlining function invoked at the end of the document.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3989 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/editors/emacs/rst.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editors/emacs/rst.el b/tools/editors/emacs/rst.el index 68179e73c..d2ee8c225 100644 --- a/tools/editors/emacs/rst.el +++ b/tools/editors/emacs/rst.el @@ -418,7 +418,8 @@ have been seen. (defun rst-delete-line () "A version of kill-line that does not use the kill-ring." - (delete-region (line-beginning-position) (+ 1 (line-end-position)))) + (delete-region (line-beginning-position) (min (+ 1 (line-end-position)) + (point-max)))) (defun rst-update-section (char style &optional indent) "Unconditionally updates the style of a section decoration |
