Skip to content

v0.11.7

Compare
Choose a tag to compare
@hymkor hymkor released this 12 May 04:50
· 120 commits to master since this release
  • Change the global sync.Mutex variable to a field in an Editor instance. In a command bound to a key, it was imposible to create a new Editor instance and call (*Editor) ReadLine.
  • Rename (*Editor) loolup(KEY) to look up a command mapped to a KEY from both instance's table and global table to LookUp (exposed)
  • (KeyMap) BindKey(KEY,nil) now removes the function assigned to KEY
  • Implement (c Cell) String that behaves equivalently to b:=&strings.Builder{};c.Moji.WriteTo(b);b.String()
  • (*Buffer) GetKey now calls (*Buffer).Out.Flush, so the user no longer needs to call Flush explicitly.

  • グローバルな sync.Mutex 変数を Editor インスタンスの変数に変更した。キーに割り当てられたコマンド内で、新たな Editor インスタンスを生成して、(*Editor) ReadLine を呼ぶことができない問題があった。
  • インスタンスのテーブル・グローバルなテーブルの双方から、キーに割り当てられたコマンドを探す (*Editor) loolup(KEY)LookUp に改名(公開)
  • (*KeyMap) BindKey(KEY,nil) で KEY に割り当てられた機能を削除できるようにした。
  • b:=&strings.Builder{};c.Moji.WriteTo(b);b.String() と等価な動作をする (c Cell) String を実装
  • (*Buffer) GetKey(*Buffer).Out.Flush を呼ぶようにしたので、ユーザは明示的に Flush を呼ぶ必要はなくなった。