Skip to content

Commit

Permalink
Fix go-mode.el to work on empty buffers
Browse files Browse the repository at this point in the history
Fixes #8.

R=agl, agl1, rsc
https://golang.org/cl/153056
  • Loading branch information
lilyball authored and rsc committed Nov 11, 2009
1 parent fe1e492 commit 022e3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/emacs/go-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 022e3ae

Please sign in to comment.