mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
draft/resume-0.2 implementation, message history support
This commit is contained in:
parent
70364f5f67
commit
a0bf548fc5
28 changed files with 1294 additions and 317 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue