forked from len0rd/rockbox
[Bugfix] diacritic.c MRU discards an entry when slot available
a new slot gets added but it is set to 0 and an entry gets discarded instead set it to the last entry read Change-Id: I3d6f9b73030c8a5083d299c99314f9c40052689a
This commit is contained in:
parent
67b98292a3
commit
f4c95c70f9
1 changed files with 3 additions and 0 deletions
|
|
@ -232,7 +232,10 @@ bool is_diacritic(const unsigned short char_code, bool *is_rtl)
|
|||
|
||||
/* Add MRU entry */
|
||||
if (mru_len < MRU_MAX_LEN)
|
||||
{
|
||||
diacritic_mru[mru_len] = i;
|
||||
mru_len++;
|
||||
}
|
||||
|
||||
Found:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue