mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: Fixed issue with individual replace #1235
git-svn-id: svn://ultimatepp.org/upp/trunk@8839 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ac6c2a3299
commit
465ad1007c
7 changed files with 15 additions and 5 deletions
|
|
@ -381,7 +381,7 @@ public:
|
|||
|
||||
void SerializeFind(Stream& s);
|
||||
bool IsFindOpen() const { return findreplace.IsOpen(); }
|
||||
void FindClose() { findreplace.Close(); }
|
||||
void FindClose() { CloseFindReplace(); }
|
||||
|
||||
void Goto();
|
||||
|
||||
|
|
|
|||
|
|
@ -503,10 +503,13 @@ void CodeEditor::Replace()
|
|||
NextUndo();
|
||||
FindReplaceAddHistory();
|
||||
if(!found) return;
|
||||
bool h = persistent_find_replace;
|
||||
persistent_find_replace = true; // avoid closing of findreplace by selection change
|
||||
if(RemoveSelection()) {
|
||||
Paste(GetReplaceText());
|
||||
Find(false, false, true);
|
||||
}
|
||||
persistent_find_replace = h;
|
||||
}
|
||||
|
||||
int CodeEditor::BlockReplace()
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ void Ide::DoBuild()
|
|||
|
||||
void Ide::PackageBuild()
|
||||
{
|
||||
InitBlitz();
|
||||
BeginBuilding(true, true);
|
||||
const Workspace& wspc = IdeWorkspace();
|
||||
int pi = GetPackageIndex();
|
||||
|
|
|
|||
|
|
@ -127,7 +127,6 @@ One<Host> MakeBuild::CreateHost(bool sync_files)
|
|||
One<Builder> MakeBuild::CreateBuilder(Host *host)
|
||||
{
|
||||
SetupDefaultMethod();
|
||||
InitBlitz();
|
||||
VectorMap<String, String> bm = GetMethodVars(method);
|
||||
String builder = bm.Get("BUILDER", "GCC");
|
||||
int q = BuilderMap().Find(builder);
|
||||
|
|
@ -441,6 +440,8 @@ Vector<String> MakeBuild::GetAllLibraries(const Workspace& wspc, int index,
|
|||
|
||||
bool MakeBuild::Build(const Workspace& wspc, String mainparam, String outfile, bool clear_console)
|
||||
{
|
||||
InitBlitz();
|
||||
|
||||
String hfile = outfile + ".xxx";
|
||||
SaveFile(hfile, "");
|
||||
start_time = GetFileTime(hfile); // Defensive way to get correct filetime of start
|
||||
|
|
@ -530,7 +531,7 @@ bool MakeBuild::Build(const Workspace& wspc, String mainparam, String outfile, b
|
|||
// changes during compilation, it is recompiled during next build
|
||||
SetFileTime(target, start_time);
|
||||
for(int i = 0; i < immfile.GetCount(); i++)
|
||||
SetFileTime(immfile[i], start_time);
|
||||
SetFileTime(immfile[i], start_time);
|
||||
}
|
||||
}
|
||||
EndBuilding(ok);
|
||||
|
|
|
|||
|
|
@ -5,15 +5,16 @@ noblitz;
|
|||
uses
|
||||
ide\Core,
|
||||
ide/Android,
|
||||
ide/Java;
|
||||
ide/Java,
|
||||
ide/Android;
|
||||
|
||||
file
|
||||
Builders.h options(BUILDER_OPTION) PCH,
|
||||
CppBuilder.cpp,
|
||||
MakeFile.cpp,
|
||||
GccBuilder.icpp,
|
||||
coff.h,
|
||||
Builders readonly separator,
|
||||
GccBuilder.icpp,
|
||||
MscBuilder.icpp,
|
||||
OwcBuilder.icpp,
|
||||
JavaBuilder.icpp,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#ifndef _plugin_pcre_icpp_init_stub
|
||||
#define _plugin_pcre_icpp_init_stub
|
||||
#include "Core/init"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ noblitz;
|
|||
|
||||
options(BUILDER_OPTION) NOWARNINGS;
|
||||
|
||||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
Pcre.h,
|
||||
RegExp.h,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue