mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-12 03:08:11 -07:00
draft/resume-0.2 implementation, message history support
This commit is contained in:
@@ -353,6 +353,11 @@ func (set *ModeSet) SetMode(mode Mode, on bool) (applied bool) {
|
||||
return utils.BitsetSet(set[:], uint(mode)-minMode, on)
|
||||
}
|
||||
|
||||
// copy the contents of another modeset on top of this one
|
||||
func (set *ModeSet) Copy(other *ModeSet) {
|
||||
utils.BitsetCopy(set[:], other[:])
|
||||
}
|
||||
|
||||
// return the modes in the set as a slice
|
||||
func (set *ModeSet) AllModes() (result []Mode) {
|
||||
if set == nil {
|
||||
|
||||
Reference in New Issue
Block a user