Skip to content

Commit

Permalink
Merge branch 'hotfix/3.5.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Sep 8, 2018
2 parents a67bad2 + 4f096cf commit 8f842de
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 26 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Change Log
==========================

3.5.2 (274)
--------------------------

### Fixes

- Fix an issue where the “Replace All” command didn't work on CotEditor 3.5.2.



3.5.2 (273)
--------------------------

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@
<h1>Release Notes</h1>


<article>
<header>
<h1>CotEditor 3.5.3</h1>
<p>release: <time>2018-09-08</time></p>
</header>


<section>
<h2>Fixes</h2>

<ul>
<li>Fix an issue where the “Replace All” command didn't work on CotEditor 3.5.2.</li>
</ul>
</section>
</article>


<article>
<header>
<h1>CotEditor 3.5.2</h1>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@
<h1>リリースノート</h1>


<article>
<header>
<h1>CotEditor 3.5.3</h1>
<p>リリース: <time>2018-09-08</time></p>
</header>


<section>
<h2>修正</h2>

<ul>
<li>CotEditor 3.5.2で「すべて置換」コマンドが機能していなかった不具合を修正</li>
</ul>
</section>
</article>



<article>
<header>
<h1>CotEditor 3.5.2</h1>
Expand Down
4 changes: 2 additions & 2 deletions CotEditor/Info-AppStore.plist
Original file line number Diff line number Diff line change
Expand Up @@ -988,13 +988,13 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.5.2</string>
<string>3.5.3</string>
<key>CFBundleSignature</key>
<string>cEd1</string>
<key>CFBundleSpokenName</key>
<string>Cot editor</string>
<key>CFBundleVersion</key>
<string>273</string>
<string>274</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down
4 changes: 2 additions & 2 deletions CotEditor/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -988,13 +988,13 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.5.2</string>
<string>3.5.3</string>
<key>CFBundleSignature</key>
<string>cEd1</string>
<key>CFBundleSpokenName</key>
<string>Cot editor</string>
<key>CFBundleVersion</key>
<string>273</string>
<string>274</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down
5 changes: 5 additions & 0 deletions CotEditor/Sources/EditorTextView+LineProcessing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ extension EditorTextView {
/// show pattern sort sheet
@IBAction func patternSort(_ sender: Any?) {

guard self.isEditable else {
NSSound.beep()
return
}

let viewController = NSStoryboard(name: NSStoryboard.Name("PatternSortView"), bundle: nil).instantiateInitialController() as! PatternSortViewController
viewController.representedObject = self

Expand Down
16 changes: 0 additions & 16 deletions CotEditor/Sources/EditorTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,6 @@ final class EditorTextView: NSTextView, Themable {
}


/// control editability of receiver
override var isEditable: Bool {

get {
// avoid editing while sheet is displayed
guard self.window?.attachedSheet == nil else { return false }

return super.isEditable
}

set {
super.isEditable = newValue
}
}


/// append inset only to the bottom for overscroll
override var textContainerOrigin: NSPoint {

Expand Down
5 changes: 1 addition & 4 deletions CotEditor/Sources/MultipleReplacement+TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ extension MultipleReplacement {
/// highlight all matches in the textView
func highlight(inSelection: Bool, completionHandler: @escaping (_ resultMessage: String) -> Void) {

guard
let textView = TextFinder.shared.client,
textView.window?.attachedSheet == nil
else {
guard let textView = TextFinder.shared.client else {
NSSound.beep()
return
}
Expand Down
2 changes: 1 addition & 1 deletion CotEditor/Sources/PatternSortViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ final class PatternSortViewController: NSViewController, SortPatternViewControll

// MARK: Private Methods

// SortPattern currently edited
/// SortPattern currently edited
private var sortPattern: SortPattern? {

return self.tabViewController?.tabViewItems[self.tabViewController!.selectedTabViewItemIndex]
Expand Down
2 changes: 1 addition & 1 deletion CotEditor/Sources/TextFinder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ final class TextFinder: NSResponder {

guard
let textView = self.client,
(!forEditing || textView.isEditable)
(!forEditing || (textView.isEditable && textView.window?.attachedSheet == nil))
else {
NSSound.beep()
return nil
Expand Down

0 comments on commit 8f842de

Please sign in to comment.