diff options
author | Kevin Ballard <kevin@sb.org> | 2009-11-10 20:04:14 -0800 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2009-11-10 20:04:14 -0800 |
commit | df1b38aa7c09f7720e2e54ecfa6f92da11f4ceab (patch) | |
tree | 8536d9c17cfab34d66ff23f395535c2ac2b4b4b8 /misc/emacs/go-mode.el | |
parent | c945788d34edcf287523b774c1328099899595fb (diff) | |
download | golang-df1b38aa7c09f7720e2e54ecfa6f92da11f4ceab.tar.gz |
Fix go-mode.el to work on empty buffers
Fixes issue 8.
R=agl, agl1, rsc
http://codereview.appspot.com/153056
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'misc/emacs/go-mode.el')
-rw-r--r-- | misc/emacs/go-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
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 |