Commit 022e3ae2 authored by Kevin Ballard's avatar Kevin Ballard Committed by Russ Cox

Fix go-mode.el to work on empty buffers

Fixes #8.

R=agl, agl1, rsc
https://golang.org/cl/153056
parent fe1e4924
...@@ -436,7 +436,7 @@ functions, and some types. It also provides indentation that is ...@@ -436,7 +436,7 @@ functions, and some types. It also provides indentation that is
;; Remove stale text properties ;; Remove stale text properties
(save-restriction (save-restriction
(widen) (widen)
(remove-list-of-text-properties 1 (buffer-size) (remove-list-of-text-properties 1 (+ (buffer-size) 1)
'(go-mode-cs go-mode-nesting))) '(go-mode-cs go-mode-nesting)))
;; Reset the syntax mark caches ;; Reset the syntax mark caches
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment