Commit 3eb225e9 authored by Albert Gräf's avatar Albert Gräf

Fix glitch in dollar symbol comparison in binbuf_match (#404).

parent c6485c39
......@@ -1625,12 +1625,18 @@ int binbuf_match(t_binbuf *inbuf, t_binbuf *searchbuf, int wholeword)
if (a2->a_type != a1->a_type)
goto nomatch;
}
else if (a1->a_type == A_FLOAT || a1->a_type == A_DOLLAR)
else if (a1->a_type == A_FLOAT)
{
if (a2->a_type != a1->a_type ||
a1->a_w.w_float != a2->a_w.w_float)
goto nomatch;
}
else if (a1->a_type == A_DOLLAR)
{
if (a2->a_type != a1->a_type ||
a1->a_w.w_index != a2->a_w.w_index)
goto nomatch;
}
else if (a1->a_type == A_SYMBOL || a1->a_type == A_DOLLSYM)
{
if ((a2->a_type != A_SYMBOL && a2->a_type != A_DOLLSYM)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment