Skip to content

Commit

Permalink
release_note: attach the code to reproduce the crash
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed May 2, 2024
1 parent dc95acc commit 1b816aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/release_note_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
(%DATE% was expected like `2024/04/19 金`, but `2024/04/19 1919`)
* Fix the runtime error when `this:replacefrom(0,...)` is called in the key-handling lua-function. Instead, it returns {nil,error-message}

```lua
-- On 4.4.15, typing C-I causes crash of nyagos.
nyagos.key["C-I"] = function(this)
assert(this:replacefrom(0,"XXXXX"))
end
```

NYAGOS 4.4.15\_0
================
Apr 7, 2024
Expand Down
7 changes: 7 additions & 0 deletions docs/release_note_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
* Windows の日付の設定に曜日が含まれているとき %DATE% の結果がおかしくなる不具合を修正 (`2024/04/19 金` と出て欲しいのに `2024/04/19 1919` と出てしまう)
* 一行入力のキーハンドル関数の中で `this:replacefrom(0,...)` を呼び出すと、ランタイムエラー: `runtime error: slice bounds out of range [-1:]` でクラッシュする不具合を修正。かわりに {nil,エラーメッセージ} を返すようにした。

```lua
-- On 4.4.15, typing C-I causes crash of nyagos.
nyagos.key["C-I"] = function(this)
assert(this:replacefrom(0,"XXXXX"))
end
```

NYAGOS 4.4.15\_0
================
(2024.04.07)
Expand Down

0 comments on commit 1b816aa

Please sign in to comment.