From cc03a31a3bf4d60ac167c92cee389758c8abb693 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 16 Jan 2016 06:51:08 +0000 Subject: [PATCH] ide: Alt+L in log goes back #1357 git-svn-id: svn://ultimatepp.org/upp/trunk@9397 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Debug.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uppsrc/ide/Debug.cpp b/uppsrc/ide/Debug.cpp index 18615e203..988b22671 100644 --- a/uppsrc/ide/Debug.cpp +++ b/uppsrc/ide/Debug.cpp @@ -424,6 +424,12 @@ String Ide::GetLogPath() void Ide::OpenLog() { String p = GetLogPath(); + String path = NormalizePath(p); + if(!designer && path == editfile) { + History(-1); + return; + } + AddHistory(); if(FileExists(p)) EditFile(p); }