]> Cypherpunks repositories - gostls13.git/commitdiff
Fix go-mode.el to work on empty buffers
authorKevin Ballard <kevin@sb.org>
Wed, 11 Nov 2009 04:04:14 +0000 (20:04 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 04:04:14 +0000 (20:04 -0800)
Fixes #8.

R=agl, agl1, rsc
https://golang.org/cl/153056

misc/emacs/go-mode.el

index 6f5d97aa4961ef7247b0e7956f25f8a61b9dfd53..feba035ee50c91e4ef8f2274ba5f030972e4b091 100644 (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