From d2910a0eeb38cb10e24c6d8fea0fbfdd578c42c8 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Tue, 2 Jul 2024 19:51:46 +0900 Subject: [PATCH 1/2] Fix repopen event with documents in the Dock --- CHANGELOG.md | 1 + CotEditor/Sources/AppDelegate.swift | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48cf66b6b..4905a16f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Fixes +- Fix an issue that a document kept in the Dock was not brought to the front on the reopen event even though no documents were displayed. - Fix the view layout in the Quick Action bar. - Fix a potential memory leak. diff --git a/CotEditor/Sources/AppDelegate.swift b/CotEditor/Sources/AppDelegate.swift index b50b1e698..2800f56fa 100644 --- a/CotEditor/Sources/AppDelegate.swift +++ b/CotEditor/Sources/AppDelegate.swift @@ -259,9 +259,11 @@ private enum BundleIdentifier { // execute the action directly by self (2024-05, macOS 14). if !flag { (DocumentController.shared as? DocumentController)?.performOnLaunchAction(isReopen: true) + return false + } else { + // -> bring a document in the Dock to the front if any exists. + return true } - - return false } From 92230fc924dd5e6004971f119544e9505cf1ae9a Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Tue, 2 Jul 2024 23:03:31 +0900 Subject: [PATCH 2/2] Disable smart quotes by default (#1661) --- CHANGELOG.md | 1 + CotEditor/Sources/ModeOptions.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4905a16f0..c9b0c0604 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Improvements +- Change to disable the smart quotes option in the Mode settings by default. - Draw invisible symbols for invisible operators (U+2061, U+2062, U+2063, and U+2064). - Update the Lisp, Lua, Scheme, and Tcl syntaxes to update interpreters (thanks to Renfei!). - [non-AppStore ver.] Update Sparkle from 2.6.3 to 2.6.4. diff --git a/CotEditor/Sources/ModeOptions.swift b/CotEditor/Sources/ModeOptions.swift index e3c8b164d..72fc131c6 100644 --- a/CotEditor/Sources/ModeOptions.swift +++ b/CotEditor/Sources/ModeOptions.swift @@ -62,7 +62,7 @@ extension Syntax.Kind { ModeOptions( fontType: .standard, smartInsertDelete: true, - automaticQuoteSubstitution: true, + automaticQuoteSubstitution: false, automaticDashSubstitution: false, automaticSymbolBalancing: false, continuousSpellChecking: true,