Find and Replace

From: Brian Schott <briancsch....at.gmail.com>
Date: Mon, 28 Jun 2010 19:58:37 -0700

I've written a patch that prevents users from throwing Textadept into an
infinite loop when using the "Replace All" button.

Place this at line 252 (line number taken from the current find.lua in
Mercurial)

  if (find.lua and rtext:gsub('\\[abfnrtv\\]', escapes):find(ftext))
      or (find.lua == false and ftext == rtext) then
    gui.statusbar_text = "Error: Find pattern matches replacement text"
    return
  end
Received on Mon 28 Jun 2010 - 22:58:37 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:49:27 EST