Mercurial > octave
comparison libgui/src/m-editor/find-dialog.h @ 18184:5f7f58866922 gui-release
fix search and replace all in find dialog (bug #41051)
* find-dialog.cc (contructor): init flag for replace all with 0 (false);
(find): fix cursor position when searching backwards, handle case when
searching and replacing all;
(replace): only replace when there is selected text and a find result;
(replace_all): search and replace all only from the beginning to the end
* find-dialog.h: new flag _rep_all
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 01 Jan 2014 18:18:34 +0100 |
parents | 86c6ae5f969e |
children | 0a66861d8069 |
comparison
equal
deleted
inserted
replaced
18181:7eeaecac9b5b | 18184:5f7f58866922 |
---|---|
106 QPushButton *_replace_all_button; | 106 QPushButton *_replace_all_button; |
107 QPushButton *_more_button; | 107 QPushButton *_more_button; |
108 QWidget *_extension; | 108 QWidget *_extension; |
109 QsciScintilla *_edit_area; | 109 QsciScintilla *_edit_area; |
110 bool _find_result_available; | 110 bool _find_result_available; |
111 int _rep_all; | |
111 }; | 112 }; |
112 | 113 |
113 #endif // FIND_DIALOG_H | 114 #endif // FIND_DIALOG_H |
114 | 115 |