aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2009-11-10 20:04:14 -0800
committerRuss Cox <rsc@golang.org>2009-11-10 20:04:14 -0800
commit022e3ae2659491e519d392e266acd86223a510f4 (patch)
tree019b8d01f6d06e673dab5bcf715fe7967b6ad050
parentfe1e49241c04c748d0e3f4762925241adcb8d7da (diff)
downloadgo-022e3ae2659491e519d392e266acd86223a510f4.tar.gz
go-022e3ae2659491e519d392e266acd86223a510f4.zip
Fix go-mode.el to work on empty buffers
Fixes #8. R=agl, agl1, rsc https://golang.org/cl/153056
-rw-r--r--misc/emacs/go-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el
index 6f5d97aa49..feba035ee5 100644
--- a/misc/emacs/go-mode.el
+++ b/misc/emacs/go-mode.el
@@ -436,7 +436,7 @@ functions, and some types. It also provides indentation that is
;; Remove stale text properties
(save-restriction
(widen)
- (remove-list-of-text-properties 1 (buffer-size)
+ (remove-list-of-text-properties 1 (+ (buffer-size) 1)
'(go-mode-cs go-mode-nesting)))
;; Reset the syntax mark caches