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 | 9ca5aca0c925b75ffd4542a834b6ea6bf4966c64 (patch) | |
tree | 8536d9c17cfab34d66ff23f395535c2ac2b4b4b8 | |
parent | 450043b92cd504032a8a49d57c85a197eb90c053 (diff) | |
download | go-9ca5aca0c925b75ffd4542a834b6ea6bf4966c64.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>
-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 |