Menu

BUG: CTRL+R "replace requires selected text"

2007-08-11
2012-11-13
  • Nobody/Anonymous

    When I apply the regular expression ^[^_]* and after a found match I hit "Replace rest", NP++ starts buzzing, flickering "replace requires selecting text" on the status bar of the Replace Dialog. NP++ uses all available CPU then, and I have to terminate the program. Meanwhile, the buzzing will go on for some more seconds. In windows Task Manager it is winlogon.exe then that consumes all CPU time till that moment.

    I have a filelist in which all files contain several underscors (_) in the filepath. I already have deleted a selected column block to be left with only the first part of all names, containing the last underscore. I don't think the regex is the problem, is it?

    What is going wrong here?

     
    • steakhacher

      steakhacher - 2007-08-12

      It may be a bug of plugin implementing CTR+R, you can try with ctrl+H it may be working better...

       
      • Aleksey Timohin

        Aleksey Timohin - 2009-04-28

        I have the same bug in Notepad++  5.3.1. When i create new file, add there following text:
        <% if flash[:cart_notice] %>
        2 <%= render :partial => "cart/cart_notice" %>
        3 <% end %>
        4
        5 <h3>Your Shopping Cart</h3>
        6 <ul>
        7 <% for item in @cart.cart_items %>
        8 <li id="cart_item_<%= item.book.id %>">
        9 <%= render :partial => "cart/item", :object => item %>
        10 </li>
        11 <% end %>
        12 </ul>
        13 <p id="cart_total"><strong>Total: $<%= sprintf("%0.2f", @cart.total) %>
        </strong></p>

        press Ctrl+R. In find input: ^[0-9]*
        in replace - nothing. Check mark: regular expression. Hit Find. Hit replace rest. Voila: notepad hangs, using most of my CPU.