From df1b38aa7c09f7720e2e54ecfa6f92da11f4ceab Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Tue, 10 Nov 2009 20:04:14 -0800 Subject: Fix go-mode.el to work on empty buffers Fixes issue 8. R=agl, agl1, rsc http://codereview.appspot.com/153056 Committer: Russ Cox --- misc/emacs/go-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/emacs/go-mode.el') diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 6f5d97aa4..feba035ee 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 -- cgit v1.2.3