Mercurial > vim
comparison src/spell.c @ 6949:1e621b31948b v7.4.793
patch 7.4.793
Problem: Can't specify when not to ring the bell.
Solution: Add the 'belloff' option. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 Jul 2015 17:53:25 +0200 |
parents | 7347229a646a |
children | ad432f8f68fb |
comparison
equal
deleted
inserted
replaced
6948:50dfc96920a8 | 6949:1e621b31948b |
---|---|
10199 { | 10199 { |
10200 /* Use the Visually selected text as the bad word. But reject | 10200 /* Use the Visually selected text as the bad word. But reject |
10201 * a multi-line selection. */ | 10201 * a multi-line selection. */ |
10202 if (curwin->w_cursor.lnum != VIsual.lnum) | 10202 if (curwin->w_cursor.lnum != VIsual.lnum) |
10203 { | 10203 { |
10204 vim_beep(); | 10204 vim_beep(BO_SPELL); |
10205 return; | 10205 return; |
10206 } | 10206 } |
10207 badlen = (int)curwin->w_cursor.col - (int)VIsual.col; | 10207 badlen = (int)curwin->w_cursor.col - (int)VIsual.col; |
10208 if (badlen < 0) | 10208 if (badlen < 0) |
10209 badlen = -badlen; | 10209 badlen = -badlen; |