From 022e3ae2659491e519d392e266acd86223a510f4 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Tue, 10 Nov 2009 20:04:14 -0800 Subject: [PATCH] Fix go-mode.el to work on empty buffers Fixes #8. R=agl, agl1, rsc https://golang.org/cl/153056 --- misc/emacs/go-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 6f5d97aa4961ef..feba035ee50c91 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