Fix wrong selection range after Replace in Selection.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4784 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
3f73778d61
commit
5bbd6a30d7
@ -1,3 +1,9 @@
|
||||
2010-03-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/search.c, src/document.c:
|
||||
Fix wrong selection range after Replace in Selection.
|
||||
|
||||
|
||||
2010-03-20 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* src/win32.c:
|
||||
|
@ -2128,7 +2128,7 @@ document_replace_range(GeanyDocument *doc, const gchar *find_text, const gchar *
|
||||
sci_goto_pos(sci, ttf.chrg.cpMin, TRUE);
|
||||
|
||||
if (new_range_end != NULL)
|
||||
*new_range_end = end;
|
||||
*new_range_end = ttf.chrg.cpMax;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
@ -1876,7 +1876,8 @@ void search_find_usage(const gchar *search_text, gint flags, gboolean in_session
|
||||
}
|
||||
|
||||
|
||||
/* ttf is updated to include the last match positions.
|
||||
/* ttf is updated to include the last match position (ttf->chrg.cpMin) and
|
||||
* the new search range end (ttf->chrg.cpMax).
|
||||
* Note: Normally you would call sci_start/end_undo_action() around this call. */
|
||||
/* Warning: Scintilla recommends caching replacements to do all at once to avoid
|
||||
* performance issues with SCI_GETCHARACTERPOINTER. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user