Skip to content

Commit

Permalink
[Fix] (force) inline app option is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed Jun 3, 2024
1 parent ece82b1 commit 59691d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/SquirrelInputController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ private extension SquirrelInputController {
NSApp.squirrelAppDelegate.loadSettings(for: schemaId)
// inline preedit
if let panel = NSApp.squirrelAppDelegate.panel {
inlinePreedit = panel.inlinePreedit && (!rimeAPI.get_option(session, "no_inline") || rimeAPI.get_option(session, "inline"))
inlineCandidate = panel.inlineCandidate && (!rimeAPI.get_option(session, "no_inline") || rimeAPI.get_option(session, "inline"))
inlinePreedit = (panel.inlinePreedit && !rimeAPI.get_option(session, "no_inline")) || rimeAPI.get_option(session, "inline")
inlineCandidate = panel.inlineCandidate && !rimeAPI.get_option(session, "no_inline")
// if not inline, embed soft cursor in preedit string
rimeAPI.set_option(session, "soft_cursor", !inlinePreedit)
}
Expand Down

0 comments on commit 59691d3

Please sign in to comment.