Fixed broken completion for long uri (#39).
authorDaniel Carl <danielcarl@gmx.de>
Sat, 29 Jun 2013 21:01:34 +0000 (23:01 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 29 Jun 2013 21:13:04 +0000 (23:13 +0200)
commit9c7171e2daa79ef9f3cfe4ef68c63dba4c280e03
tree424ae170f5151895e0ff3632f822960ba5e3f606
parent73a98b86fd3f662ba1d56febd36f3c6784f2955e
Fixed broken completion for long uri (#39).

If the completion reached a uri that where longer than 255 chars the
completion reduced to one possible item. The reason was the vb_echo* functions
that used only 255 chars to put into inputbox. If the uri was longer we
considered the current text and the text of completion item as different and
cleaned the completion and created a new list with the current text of 255
chars which normally matched only once.

The buffer size is now set to 512 for all internal used string buffer.
src/bookmark.c
src/completion.c
src/history.c
src/main.c
src/main.h