mirror of https://github.com/MidnightCommander/mc
(edit_cursor_to_eol): reduce variable scope.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c3bc294bb3
commit
1fe2d902b8
|
@ -902,8 +902,8 @@ edit_cursor_to_eol (WEdit * edit)
|
||||||
static unsigned long
|
static unsigned long
|
||||||
my_type_of (int c)
|
my_type_of (int c)
|
||||||
{
|
{
|
||||||
unsigned long x, r = 0;
|
unsigned long r = 0;
|
||||||
const char *p, *q;
|
const char *q;
|
||||||
const char chars_move_whole_word[] =
|
const char chars_move_whole_word[] =
|
||||||
"!=&|<>^~ !:;, !'!`!.?!\"!( !) !{ !} !Aa0 !+-*/= |<> ![ !] !\\#! ";
|
"!=&|<>^~ !:;, !'!`!.?!\"!( !) !{ !} !Aa0 !+-*/= |<> ![ !] !\\#! ";
|
||||||
|
|
||||||
|
@ -927,6 +927,9 @@ my_type_of (int c)
|
||||||
return 0xFFFFFFFFUL;
|
return 0xFFFFFFFFUL;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
unsigned long x;
|
||||||
|
const char *p;
|
||||||
|
|
||||||
for (x = 1, p = chars_move_whole_word; p < q; p++)
|
for (x = 1, p = chars_move_whole_word; p < q; p++)
|
||||||
if (*p == '!')
|
if (*p == '!')
|
||||||
x <<= 1;
|
x <<= 1;
|
||||||
|
|
Loading…
Reference in New Issue