I can reproduce it while editing /boot/grub/menu.lst and string to search and replace is long (UUID of disk). UUID=d34a15b0-c44b-42e9-88a2-b122f01ba07b to replace it with string /dev/md2
Actually it is not easy to reproduce. If you do open mousepad > open text file > select and copy string to replace > go to Search>Replace and enter new string replacing will be done well. **But if you firstly use Find function to find string inside text file **and THEN you use Replace function then you get new string beside old one in text instead of **replacing it. ** Also bug can be reproduced ONLY if mousepad is run as root, using gksu. (If you use sudo mousepad, it works fine, only if you invoke it with gksu, bug can be seen) New steps to reproduce: (Provided you saved Test123.txt inside /tmp/Test123.txt) ALT+F2(or from bash) , type: gksu mousepad /tmp/Test123.txt use Find function to search for string UUID=d34a15b0-c44b-42e9-88a2-b122f01ba07b. Now Use Search/replace function to replace UUID=d34a15b0-c44b-42e9-88a2-b122f01ba07b with /dev/md2. (With match case and replace all at once on) You get old string intact, with added new string to the right. So, since Bug does not appear when using sudo, Maybe there is some gksu to mousepad glitch.. gksu: Version: 2.0.0-5ubuntu3.8.04.1 mousepad: Version: 0.2.14-0ubuntu1 Also I attached Test123-1.txt with texttoChangE to be replaced with newstring ** Also, notice that bug appears only if New string is shorter then string that you are replacing. ** Attachment added: "Test123.txt" http://launchpadlibrarian.net/21262141/Test123.txt -- mousepad search/replace function broken https://bugs.launchpad.net/bugs/316727 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs