1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:24:42 -07:00

Fix go-mode.el to work on empty buffers

Fixes #8.

R=agl, agl1, rsc
https://golang.org/cl/153056
This commit is contained in:
Kevin Ballard 2009-11-10 20:04:14 -08:00 committed by Russ Cox
parent fe1e49241c
commit 022e3ae265

View File

@ -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