InputState // Bind allowBoostingSingleKanjiAsUserPhrase.
This commit is contained in:
parent
c55f70e464
commit
ca8f284064
|
@ -153,7 +153,7 @@ class InputState {
|
||||||
|
|
||||||
/// Represents that the user is marking a range in the composing buffer.
|
/// Represents that the user is marking a range in the composing buffer.
|
||||||
class Marking: NotEmpty {
|
class Marking: NotEmpty {
|
||||||
private var allowedMarkRange = 2...mgrPrefs.maxCandidateLength
|
private var allowedMarkRange: ClosedRange<Int> = mgrPrefs.minCandidateLength...mgrPrefs.maxCandidateLength
|
||||||
private(set) var markerIndex: Int = 0 { didSet { markerIndex = max(markerIndex, 0) } }
|
private(set) var markerIndex: Int = 0 { didSet { markerIndex = max(markerIndex, 0) } }
|
||||||
private(set) var markedRange: Range<Int>
|
private(set) var markedRange: Range<Int>
|
||||||
private var literalMarkedRange: Range<Int> {
|
private var literalMarkedRange: Range<Int> {
|
||||||
|
@ -161,6 +161,7 @@ class InputState {
|
||||||
let upperBoundLiteral = composingBuffer.charIndexLiteral(from: markedRange.upperBound)
|
let upperBoundLiteral = composingBuffer.charIndexLiteral(from: markedRange.upperBound)
|
||||||
return lowerBoundLiteral..<upperBoundLiteral
|
return lowerBoundLiteral..<upperBoundLiteral
|
||||||
}
|
}
|
||||||
|
|
||||||
private var deleteTargetExists = false
|
private var deleteTargetExists = false
|
||||||
var tooltip: String {
|
var tooltip: String {
|
||||||
if composingBuffer.count != readings.count {
|
if composingBuffer.count != readings.count {
|
||||||
|
|
Loading…
Reference in New Issue