Statalist


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

st: Bug in Stata11 Editor


From   Salah Mahmud <[email protected]>
To   [email protected]
Subject   st: Bug in Stata11 Editor
Date   Sun, 2 Aug 2009 12:04:06 -0500

This is not technically a bug, more of an odd and at times infuriating
behavior (and it is not new to Stata 11 either).
To reproduce:
1. Select some text in the editor.
2. Click Edit | Find | replace to activate the replace dialog.
3. Enter a search word.
4. Click "replace all."
All occurrences of the search word in the selected text are replaced
(expected). What is unexpected is that the editor will replace,
without warning, all occurrences of the search word in the unselected
text too. As far as I could tell this occurs whether "wrap
search/replace" is checked or not.

Because "undo" undoes one replace at at time, you will now have to
spend the rest of your morning clicking undo to get back your code or
just reload the file and lose all unsaved changes.

In all text editors I have used, search and replace is limited to
selected text. Word gives you the option to extend search to
unselected text.

/salah mahmud
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index