mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
digraph: Ignore false positive
Reversed order is intentional, digraphs allow swapping characters.
This commit is contained in:
parent
a096766ee3
commit
2901921a1b
@ -1569,7 +1569,8 @@ int getdigraph(int char1, int char2, int meta_char)
|
|||||||
|
|
||||||
if (((retval = getexactdigraph(char1, char2, meta_char)) == char2)
|
if (((retval = getexactdigraph(char1, char2, meta_char)) == char2)
|
||||||
&& (char1 != char2)
|
&& (char1 != char2)
|
||||||
&& ((retval = getexactdigraph(char2, char1, meta_char)) == char1)) {
|
&& ((retval = getexactdigraph(char2, char1, meta_char)) // -V764
|
||||||
|
== char1)) {
|
||||||
return char2;
|
return char2;
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
|
Loading…
Reference in New Issue
Block a user