From f5470752283b214dbc217fe3636dd2c10713a047 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 22 Jul 2022 14:34:21 +0800 Subject: [PATCH] KeyHandler // Tweaking buildInputtingState(). --- Source/Modules/ControllerModules/KeyHandler_States.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/ControllerModules/KeyHandler_States.swift b/Source/Modules/ControllerModules/KeyHandler_States.swift index 4f04c98f..60268fcc 100644 --- a/Source/Modules/ControllerModules/KeyHandler_States.swift +++ b/Source/Modules/ControllerModules/KeyHandler_States.swift @@ -77,7 +77,7 @@ extension KeyHandler { /// 這裡先計算一下要用在工具提示當中的顯示參數的內容。 switch compositorCursorIndex { case compositor.readings.count...: - tooltipParameterRef[0] = compositor.readings[compositor.readings.count - 1] + tooltipParameterRef[0] = compositor.readings[compositorCursorIndex - 1] case 0: tooltipParameterRef[1] = compositor.readings[compositorCursorIndex] default: