|
|
8b9a1c |
To: vim_dev@googlegroups.com
|
|
|
8b9a1c |
Subject: Patch 7.4.038
|
|
|
8b9a1c |
Fcc: outbox
|
|
|
8b9a1c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
8b9a1c |
Mime-Version: 1.0
|
|
|
8b9a1c |
Content-Type: text/plain; charset=UTF-8
|
|
|
8b9a1c |
Content-Transfer-Encoding: 8bit
|
|
|
8b9a1c |
------------
|
|
|
8b9a1c |
|
|
|
8b9a1c |
Patch 7.4.038
|
|
|
8b9a1c |
Problem: Using "zw" and "zg" when 'spell' is off give a confusing error
|
|
|
8b9a1c |
message. (Gary Johnson)
|
|
|
8b9a1c |
Solution: Ignore the error when locating the word. Explicitly mention what
|
|
|
8b9a1c |
word was added. (Christian Brabandt)
|
|
|
8b9a1c |
Files: src/normal.c, src/spell.c
|
|
|
8b9a1c |
|
|
|
8b9a1c |
|
|
|
8b9a1c |
*** ../vim-7.4.037/src/normal.c 2013-09-22 15:23:38.000000000 +0200
|
|
|
8b9a1c |
--- src/normal.c 2013-09-25 18:54:08.000000000 +0200
|
|
|
8b9a1c |
***************
|
|
|
8b9a1c |
*** 5246,5253 ****
|
|
|
8b9a1c |
{
|
|
|
8b9a1c |
pos_T pos = curwin->w_cursor;
|
|
|
8b9a1c |
|
|
|
8b9a1c |
! /* Find bad word under the cursor. */
|
|
|
8b9a1c |
len = spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL);
|
|
|
8b9a1c |
if (len != 0 && curwin->w_cursor.col <= pos.col)
|
|
|
8b9a1c |
ptr = ml_get_pos(&curwin->w_cursor);
|
|
|
8b9a1c |
curwin->w_cursor = pos;
|
|
|
8b9a1c |
--- 5246,5257 ----
|
|
|
8b9a1c |
{
|
|
|
8b9a1c |
pos_T pos = curwin->w_cursor;
|
|
|
8b9a1c |
|
|
|
8b9a1c |
! /* Find bad word under the cursor. When 'spell' is
|
|
|
8b9a1c |
! * off this fails and find_ident_under_cursor() is
|
|
|
8b9a1c |
! * used below. */
|
|
|
8b9a1c |
! emsg_off++;
|
|
|
8b9a1c |
len = spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL);
|
|
|
8b9a1c |
+ emsg_off--;
|
|
|
8b9a1c |
if (len != 0 && curwin->w_cursor.col <= pos.col)
|
|
|
8b9a1c |
ptr = ml_get_pos(&curwin->w_cursor);
|
|
|
8b9a1c |
curwin->w_cursor = pos;
|
|
|
8b9a1c |
*** ../vim-7.4.037/src/spell.c 2013-07-17 17:28:28.000000000 +0200
|
|
|
8b9a1c |
--- src/spell.c 2013-09-25 18:48:55.000000000 +0200
|
|
|
8b9a1c |
***************
|
|
|
8b9a1c |
*** 9479,9485 ****
|
|
|
8b9a1c |
if (undo)
|
|
|
8b9a1c |
{
|
|
|
8b9a1c |
home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
|
|
|
8b9a1c |
! smsg((char_u *)_("Word removed from %s"), NameBuff);
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
fseek(fd, fpos_next, SEEK_SET);
|
|
|
8b9a1c |
--- 9479,9486 ----
|
|
|
8b9a1c |
if (undo)
|
|
|
8b9a1c |
{
|
|
|
8b9a1c |
home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
|
|
|
8b9a1c |
! smsg((char_u *)_("Word '%.*s' removed from %s"),
|
|
|
8b9a1c |
! len, word, NameBuff);
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
fseek(fd, fpos_next, SEEK_SET);
|
|
|
8b9a1c |
***************
|
|
|
8b9a1c |
*** 9525,9531 ****
|
|
|
8b9a1c |
fclose(fd);
|
|
|
8b9a1c |
|
|
|
8b9a1c |
home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
|
|
|
8b9a1c |
! smsg((char_u *)_("Word added to %s"), NameBuff);
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
|
|
|
8b9a1c |
--- 9526,9532 ----
|
|
|
8b9a1c |
fclose(fd);
|
|
|
8b9a1c |
|
|
|
8b9a1c |
home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
|
|
|
8b9a1c |
! smsg((char_u *)_("Word '%.*s' added to %s"), len, word, NameBuff);
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
|
|
|
8b9a1c |
***************
|
|
|
8b9a1c |
*** 10135,10141 ****
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
|
|
|
8b9a1c |
/*
|
|
|
8b9a1c |
! * "z?": Find badly spelled word under or after the cursor.
|
|
|
8b9a1c |
* Give suggestions for the properly spelled word.
|
|
|
8b9a1c |
* In Visual mode use the highlighted word as the bad word.
|
|
|
8b9a1c |
* When "count" is non-zero use that suggestion.
|
|
|
8b9a1c |
--- 10136,10142 ----
|
|
|
8b9a1c |
}
|
|
|
8b9a1c |
|
|
|
8b9a1c |
/*
|
|
|
8b9a1c |
! * "z=": Find badly spelled word under or after the cursor.
|
|
|
8b9a1c |
* Give suggestions for the properly spelled word.
|
|
|
8b9a1c |
* In Visual mode use the highlighted word as the bad word.
|
|
|
8b9a1c |
* When "count" is non-zero use that suggestion.
|
|
|
8b9a1c |
*** ../vim-7.4.037/src/version.c 2013-09-25 18:16:34.000000000 +0200
|
|
|
8b9a1c |
--- src/version.c 2013-09-25 18:52:47.000000000 +0200
|
|
|
8b9a1c |
***************
|
|
|
8b9a1c |
*** 740,741 ****
|
|
|
8b9a1c |
--- 740,743 ----
|
|
|
8b9a1c |
{ /* Add new patch number below this line */
|
|
|
8b9a1c |
+ /**/
|
|
|
8b9a1c |
+ 38,
|
|
|
8b9a1c |
/**/
|
|
|
8b9a1c |
|
|
|
8b9a1c |
--
|
|
|
8b9a1c |
MAN: Fetchez la vache!
|
|
|
8b9a1c |
GUARD: Quoi?
|
|
|
8b9a1c |
MAN: Fetchez la vache!
|
|
|
8b9a1c |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
|
8b9a1c |
|
|
|
8b9a1c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
8b9a1c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
8b9a1c |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
8b9a1c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|