Bug of 'gtk_text_iter_backward_to_tag_toggle()' ?



Hi.
The attached file(test.c) is a test program showing a probable bug
of 'gtk_text_iter_backward_to_tag_toggle()' function.
This is a very simple string finder functions like vim search command 'n'
and 'N', and it reads hard-coded file (tbgen.vhd) and searches hard-coded
pattern ('data') for simplicity.
The probable malfunction occurs if 'N' key (backward search) is pressed
when the position of 'rtag' (red background colored tag) is on 253th line
of 'tbgen.vhd' file. (253th line : when others => data(31 downto 16)
<= "0100010101100111";)
You can expect it would lead 'rtag' to move to the previous line (252th
line), but actual action is moving to the last line including 'data'
pattern (366th line).
I suppose this malfunction originated in a bug
of 'gtk_text_iter_backward_to_tag_toggle()' function.
Please check it out.
(Gtk+ version: 2.2.1, platform: Solaris 2.6, Sparc Ultra-10)
 
Regards,
Dongho.

Attachment: tbgen.vhd
Description: Binary data

Attachment: test.c
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]