Re: search bug


>     GNU Midnight Commander 4.6.0
>     It seems that internal file viewer cannot find the last character of
>     a file if there is no newline at the end of the file. Lets say my
>     file content is:
>         abc
>     (without newline at the end)
>     It will not find character c or the characters abc.

Fixed in 4.6.1-pre1:

Mon Mar 24 18:52:02 2003 UTC (10 months, 3 weeks ago) by andrew

* view.c (get_line_at): Set prev properly for reverse search.
Don't remove final character in the last line without newline.
(search): During regexp search: handle properly '^'
in forward search and '$' in reverse search.
Based on the patch from Adam Byrtek <alpha debian org>.

if you want to fix only this bug.

Andrew V. Samoilov.

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