Fix select_number

This commit is contained in:
Maxime Coste 2014-07-09 18:52:38 +01:00
parent b6979e2d2c
commit 42611aef1e

View File

@ -226,7 +226,7 @@ Selection select_number(const Buffer& buffer, const Selection& selection, Object
if (flags & ObjectFlags::ToBegin)
{
skip_while_reverse(first, buffer.begin(), is_number);
if (not is_number(*first) or not *first == '-')
if (not is_number(*first) and *first != '-')
++first;
}
BufferIterator last = buffer.iterator_at(selection.cursor());