mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
clang-analyzer: Reduce scope in arabic.c.
This commit is contained in:
@@ -1361,24 +1361,19 @@ static int half_shape(int c)
|
|||||||
int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1,
|
int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1,
|
||||||
int next_c)
|
int next_c)
|
||||||
{
|
{
|
||||||
int curr_c;
|
|
||||||
int shape_c;
|
|
||||||
int curr_laa;
|
|
||||||
int prev_laa;
|
|
||||||
|
|
||||||
/* Deal only with Arabic character, pass back all others */
|
/* Deal only with Arabic character, pass back all others */
|
||||||
if (!A_is_ok(c)) {
|
if (!A_is_ok(c)) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* half-shape current and previous character */
|
/* half-shape current and previous character */
|
||||||
shape_c = half_shape(prev_c);
|
int shape_c = half_shape(prev_c);
|
||||||
|
|
||||||
/* Save away current character */
|
/* Save away current character */
|
||||||
curr_c = c;
|
int curr_c = c;
|
||||||
|
|
||||||
curr_laa = A_firstc_laa(c, *c1p);
|
int curr_laa = A_firstc_laa(c, *c1p);
|
||||||
prev_laa = A_firstc_laa(prev_c, prev_c1);
|
int prev_laa = A_firstc_laa(prev_c, prev_c1);
|
||||||
|
|
||||||
if (curr_laa) {
|
if (curr_laa) {
|
||||||
if (A_is_valid(prev_c) && !A_is_f(shape_c) && !A_is_s(shape_c) &&
|
if (A_is_valid(prev_c) && !A_is_f(shape_c) && !A_is_s(shape_c) &&
|
||||||
|
Reference in New Issue
Block a user