[Geany-devel] [PATCH] In messages show the actual text user entered in Find and Replace dialogs
earshinov at xxxxx
Sun May 15 12:29:57 UTC 2011
When "Escape sequences" checkbox is checked in Find or Replace dialog,
before escaping the find and replace strings we should save the
original ones, so that they can be used in messages shown to user and in
the history of those dialogs' entries. This is what the patch is about.
I described in the commit message (see the top of the patch) the changes
made in the code. Just in case, here is a copy:
In the code, now we pass the original text together with the one
that is actually searched for. New `original_text' field was added to
GeanySearchData. A bug was fixed in document.c:show_replace_summary():
it did not escape the "No matches found for ..." string.
Hope that I did not touch plugin API with these changes. In header
files I changed the following:
- document_find_text()'s signature
- document_replace_text()'s signature
- search_find_usage()'s signature
- struct GeanySearchData
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 19400 bytes
Desc: not available
More information about the Devel