diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2021-07-20 11:06:01 +0100 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2021-07-20 11:14:18 +0100 |
commit | b51de13d81920f92ebe067b9c76e9d2195685099 (patch) | |
tree | 5393f917d212109c766f7100de16a775a341df9f /contrib/vimrc | |
parent | b7e450c97340789687b65ab013dbe25e012b0b6c (diff) | |
download | gcc-b51de13d81920f92ebe067b9c76e9d2195685099.zip gcc-b51de13d81920f92ebe067b9c76e9d2195685099.tar.gz gcc-b51de13d81920f92ebe067b9c76e9d2195685099.tar.bz2 |
Limit fill-column to 79
The current line-length limit is set to 80, but that allows a
character to appear in the 80th column, and that causes emacs to
display a line-wrap followed by a blank line when the display/window
width is 80 columns. Furthermore, this seems to contradict the
coding-style rules on the wiki which suggest that the line limit
should be 79.
So reduce the line width in both the emacs control file and the
contrib vimrc file to 79 characters.
ChangeLog:
* .dir-locals.el (c-mode): Change fill-column to 79.
contrib/ChangeLog:
* vimrc (textwidth): Change non-gitcommit length to 79.
Diffstat (limited to 'contrib/vimrc')
-rw-r--r-- | contrib/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vimrc b/contrib/vimrc index 356d455..b7a8ab7 100644 --- a/contrib/vimrc +++ b/contrib/vimrc @@ -42,7 +42,7 @@ function! SetStyle() if &filetype == "gitcommit" setlocal textwidth=72 else - setlocal textwidth=80 + setlocal textwidth=79 endif setlocal formatoptions-=ro formatoptions+=cqlt if index(l:c_exts, l:ext) != -1 || &filetype == "c" || &filetype == "cpp" |