Community
    • Login

    Find and Replace bug: first instance replaced with font name?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tom HallT
      Tom Hall
      last edited by

      I’m having a lot of trouble using the find and replace function at the moment. When doing either replace all, or clicking through replace multiple times, the first instance of a string being replaced is always filled in with the same number of characters as a font name

      Using a working example, for starting text:

      "%chk=Geom1_ome_SK.chk
      %mem=76MW
      %nproc=2
      #P mpwb95/cc-pvtz extrabasis IOp(3/76=0690003100)
      geom=check SCF=tight int=ultra

      SP calc SK on MPW1B95 6-31G* GEOM1. MPW1B95/maug-cc-pvtz

      0 1

      @C_O_ccpvtz_diffusebasis.gbs/N"

      Using find a replace to try and swap the string pvtz for abcd would instead give me:

      "%chk=Geom1_ome_SK.chk
      %mem=76MW
      %nproc=2
      #P mpwb95/cc-Cour extrabasis IOp(3/76=0690003100)
      geom=check SCF=tight int=ultra

      SP calc SK on MPW1B95 6-31G* GEOM1. MPW1B95/maug-cc-abcd

      0 1

      @C_O_ccabcd_diffusebasis.gbs/N"

      Replaced strings highlighted in bold. If replacing with a string longer than the one in this example i get “Courier NewNUL” followed by the remainder of the correct string. Again this only occurs in the first string replaced.

      I have no idea what is causing this but its causing me real problems! I can’t find any similar examples of the problem. Unfortunately its a controlled installation on a university computer so I may not be able to access to parts of it or update the version (I’m using V6.0)

      Any help much appreciated!

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Tom Hall
        last edited by Claudia Frank

        @Tom-Hall

        have npp6.0 available and tried to replicate this issue, wasn’t successful.
        What I’ve did is

        • copied your sample text
        • double click on one instance of pvtz
        • pressed ctrl+h
        • put in abcd in “replace with” field (“find what” was already filled)
        • used replace or replace all and all instances of pvtz got replaced by abcd - as expected.

        Can you confirm this behavior by using same steps?
        Btw. do you have any plugins installed?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors