Fix warning for unused variable without USE_M17N

This commit is contained in:
Rene Kita
2021-09-13 19:47:02 +02:00
parent 916104b7f2
commit 4901408ea5
5 changed files with 7 additions and 10 deletions

View File

@@ -1368,15 +1368,14 @@ cursorRight(Buffer *buf, int n)
{
int i, delta = 1, cpos, vpos2;
Line *l = buf->currentLine;
Lineprop *p;
if (buf->firstLine == NULL)
return;
if (buf->pos == l->len && !(l->next && l->next->bpos))
return;
i = buf->pos;
p = l->propBuf;
#ifdef USE_M17N
Lineprop *p = l->propBuf;
while (i + delta < l->len && p[i + delta] & PC_WCHAR2)
delta++;
#endif
@@ -1419,13 +1418,12 @@ cursorLeft(Buffer *buf, int n)
{
int i, delta = 1, cpos;
Line *l = buf->currentLine;
Lineprop *p;
if (buf->firstLine == NULL)
return;
i = buf->pos;
p = l->propBuf;
#ifdef USE_M17N
Lineprop *p = l->propBuf;
while (i - delta > 0 && p[i - delta] & PC_WCHAR2)
delta++;
#endif