1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-24 05:11:08 +02:00

28611: remove unused special behaviour for vi mark 26

This commit is contained in:
Peter Stephenson 2011-01-11 20:12:18 +00:00
parent 7541f37b63
commit fe59d196a0
2 changed files with 10 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2011-01-11 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 28611: Src/Zle/zle_move.c: remove unused special behaviour for
VI mark 26.
2011-01-11 Peter Stephenson <pws@csr.com> 2011-01-11 Peter Stephenson <pws@csr.com>
* 28626: Doc/Zsh/func.yo: summarise differences between two * 28626: Doc/Zsh/func.yo: summarise differences between two
@ -14099,5 +14104,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5179 $ * $Revision: 1.5180 $
***************************************************** *****************************************************

View file

@ -30,7 +30,7 @@
#include "zle.mdh" #include "zle.mdh"
#include "zle_move.pro" #include "zle_move.pro"
static int vimarkcs[27], vimarkline[27]; static int vimarkcs[26], vimarkline[26];
#ifdef MULTIBYTE_SUPPORT #ifdef MULTIBYTE_SUPPORT
/* /*
@ -803,16 +803,11 @@ int
vigotomark(UNUSED(char **args)) vigotomark(UNUSED(char **args))
{ {
ZLE_INT_T ch; ZLE_INT_T ch;
LASTFULLCHAR_T lfc = LASTFULLCHAR;
ch = getfullchar(0); ch = getfullchar(0);
if (ch == lfc) if (ch < ZWC('a') || ch > ZWC('z'))
ch = 26; return 1;
else { ch -= ZWC('a');
if (ch < ZWC('a') || ch > ZWC('z'))
return 1;
ch -= ZWC('a');
}
if (!vimarkline[ch]) if (!vimarkline[ch])
return 1; return 1;
if (curhist != vimarkline[ch] && !zle_goto_hist(vimarkline[ch], 0, 0)) { if (curhist != vimarkline[ch] && !zle_goto_hist(vimarkline[ch], 0, 0)) {