Menu

A "Replace all" bug

cocinerox
2009-01-16
2012-11-13
  • cocinerox

    cocinerox - 2009-01-16

    Hi! In version 5.1.4 unicode (and in previous versions as well) there is a small bug in the "Replace all" feature (but it can be serious). Steps to reproduce: copy-paste for example the following line to a new document:

    small duck duck duck duck

    Save the file (important!). Now move the caret to the very first position. Press Ctrl-H (Replace...). (Note that "small" is now selected.) Type d to the first textbox and l to the second, ie. to replace the "d" characters to "l". Now press "Replace all". See what I mean? The first "d" was not replaced by "l", but by the first letter of "small" ("s")... :) Thanks, cocinerox

     
    • cocinerox

      cocinerox - 2009-03-07

      Hi, this small problem still exists in v5.2 (Unicode). [Its status in the Tracker is Pending.] Thanks, cocinerox

       
    • Simon

      Simon - 2009-01-16

      I agree. Opened .cls file, CTRL-H see http://i297.photobucket.com/albums/mm216/memiself/npperror.gif
      It only did one replace (incorrectly).. "thisName" was changed to "VERSNAME". Should have been 4 replaces. Seems to have used the number of chars of find word but taken them form the green selected word.
      Strangely, if copy/paste whole to new, then do search/replace in exactly same way, it works.

       
    • Simon

      Simon - 2009-01-21

      Removed 5.1.4, installed 5.1.3 - Still happens

       
    • Bob Uncle

      Bob Uncle - 2009-01-21

      I tried this in version 4.6 (it's stable enough that I use this on my dev box) and I cannot reproduce this. So looks like it is a newer issue.

      2C