diff --git a/module/CHANGELOG-CN.md b/module/CHANGELOG-CN.md index ebd78cc..d8c88a6 100644 --- a/module/CHANGELOG-CN.md +++ b/module/CHANGELOG-CN.md @@ -3,6 +3,10 @@ 简体中文
+## 4.3.3 (2024/8/27) + +- 当启用 `menu_is_prefix_match` 时,公共前缀提取后的输入可能会导致错误,现在已修复 + ## 4.3.2 (2024/8/18) - 修复一个方法(`show_module_menu`)的参数类型转换错误 diff --git a/module/CHANGELOG.json b/module/CHANGELOG.json index 22b6b3f..f990e23 100644 --- a/module/CHANGELOG.json +++ b/module/CHANGELOG.json @@ -1,4 +1,17 @@ [ + { + "version": "4.3.3", + "info": { + "zh-CN": [ + "修复(2024/8/27)\n", + "- 当启用 <@Magenta>menu_is_prefix_match<@Blue> 时,公共前缀提取后的输入可能会导致错误,现在已修复\n" + ], + "en-US": [ + "Fix(2024/8/27)\n", + "- Fix an error that occurred when <@Magenta>menu_is_prefix_match<@Blue> was enabled, due to the input after public prefix extraction.\n" + ] + } + }, { "version": "4.3.2", "info": { diff --git a/module/CHANGELOG.md b/module/CHANGELOG.md index 5231cf2..9399fa3 100644 --- a/module/CHANGELOG.md +++ b/module/CHANGELOG.md @@ -3,6 +3,10 @@ English +## 4.3.3 (2024/8/27) + +- Fix an error that occurred when `menu_is_prefix_match` was enabled, due to the input after public prefix extraction. + ## 4.3.2 (2024/8/18) - Fix a method(`show_module_menu`) parameter type conversion error. diff --git a/module/PSCompletions.psd1 b/module/PSCompletions.psd1 index 1bb621e..b172066 100644 --- a/module/PSCompletions.psd1 +++ b/module/PSCompletions.psd1 @@ -10,7 +10,7 @@ RootModule = 'PSCompletions.psm1' - ModuleVersion = '4.3.2' + ModuleVersion = '4.3.3' GUID = '00929632-527d-4dab-a5b3-21197faccd05' diff --git a/module/core/init.ps1 b/module/core/init.ps1 index bed4dee..0614534 100644 --- a/module/core/init.ps1 +++ b/module/core/init.ps1 @@ -3,7 +3,7 @@ New-Variable -Name PSCompletions -Value @{} -Option ReadOnly # 模块版本 -$PSCompletions.version = '4.3.2' +$PSCompletions.version = '4.3.3' $PSCompletions.path = @{} $PSCompletions.path.root = Split-Path $PSScriptRoot -Parent $PSCompletions.path.completions = Join-Path $PSCompletions.path.root 'completions' @@ -807,7 +807,7 @@ if ($PSCompletions.config.module_update -match "^\d+\.\d.*") { $PSCompletions.wc.DownloadFile("$($PSCompletions.url)/module/CHANGELOG.json", (Join-Path $PSCompletions.path.core 'CHANGELOG.json')) $null = $PSCompletions.confirm_do($PSCompletions.info.module.update, { $PSCompletions.write_with_color($PSCompletions.replace_content($PSCompletions.info.module.updating)) - Update-Module PSCompletions -Force -ErrorAction Stop + Update-Module PSCompletions -RequiredVersion $PSCompletions.version_list[0] -Force -ErrorAction Stop }) } else { diff --git a/module/core/menu/win.ps1 b/module/core/menu/win.ps1 index 0bbb8ff..0fb718a 100644 --- a/module/core/menu/win.ps1 +++ b/module/core/menu/win.ps1 @@ -695,6 +695,7 @@ Add-Member -InputObject $PSCompletions.menu -MemberType ScriptMethod show_module $this.new_filter_buffer($this.filter) $this.new_status_buffer() $this.set_selection() + $old_filter_list = $this.filter_list :loop while (($PressKey = $host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown,AllowCtrlC')).VirtualKeyCode) { $shift_pressed = 0x10 -band [int]$PressKey.ControlKeyState if ($PressKey.ControlKeyState -like "*CtrlPressed*") { diff --git a/module/log.json b/module/log.json index 8e2cd00..c548a13 100644 --- a/module/log.json +++ b/module/log.json @@ -1,4 +1,14 @@ { + "4.3.3": { + "zh-CN": [ + "修复(2024/8/27)\n", + "- 当启用 <@Magenta>menu_is_prefix_match<@Blue> 时,公共前缀提取后的输入可能会导致错误,现在已修复\n" + ], + "en-US": [ + "Fix(2024/8/27)\n", + "- Fix an error that occurred when <@Magenta>menu_is_prefix_match<@Blue> was enabled, due to the input after public prefix extraction.\n" + ] + }, "4.3.2": { "zh-CN": [ "修复(2024/8/18)\n", diff --git a/module/version.txt b/module/version.txt index cc2fbe8..e91d9be 100644 --- a/module/version.txt +++ b/module/version.txt @@ -1 +1 @@ -4.3.2 +4.3.3