mirror of https://github.com/liamg/aminal.git
Fix merge issues in develop
This commit is contained in:
parent
8f183ba440
commit
a6f002b5fe
|
@ -874,7 +874,7 @@ func (buffer *Buffer) Clear() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (buffer *Buffer) ReallyClear() {
|
func (buffer *Buffer) ReallyClear() {
|
||||||
defer buffer.emitDisplayChange()
|
defer buffer.dirty.Notify()
|
||||||
buffer.lines = []Line{}
|
buffer.lines = []Line{}
|
||||||
buffer.terminalState.SetScrollOffset(0)
|
buffer.terminalState.SetScrollOffset(0)
|
||||||
buffer.SetPosition(0, 0)
|
buffer.SetPosition(0, 0)
|
||||||
|
|
|
@ -436,7 +436,7 @@ func (gui *GUI) Render() error {
|
||||||
go gui.waker(stop)
|
go gui.waker(stop)
|
||||||
|
|
||||||
for !gui.window.ShouldClose() {
|
for !gui.window.ShouldClose() {
|
||||||
gui.redraw()
|
gui.redraw(true)
|
||||||
|
|
||||||
if gui.showDebugInfo {
|
if gui.showDebugInfo {
|
||||||
gui.textbox(2, 2, fmt.Sprintf(`Cursor: %d,%d
|
gui.textbox(2, 2, fmt.Sprintf(`Cursor: %d,%d
|
||||||
|
|
|
@ -52,7 +52,7 @@ func (gui *GUI) updateSelectionMode(mods glfw.ModifierKey) {
|
||||||
}
|
}
|
||||||
if gui.selectionRegionMode != mode {
|
if gui.selectionRegionMode != mode {
|
||||||
gui.selectionRegionMode = mode
|
gui.selectionRegionMode = mode
|
||||||
gui.terminal.SetDirty()
|
gui.terminal.NotifyDirty()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -436,12 +436,3 @@ func (terminal *Terminal) Lock() {
|
||||||
func (terminal *Terminal) Unlock() {
|
func (terminal *Terminal) Unlock() {
|
||||||
terminal.lock.Unlock()
|
terminal.lock.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetDirtyLocked sets dirty flag locking the terminal to prevent data race warnings
|
|
||||||
// @todo remove when switching to event-driven architecture
|
|
||||||
func (terminal *Terminal) SetDirtyLocked() {
|
|
||||||
terminal.Lock()
|
|
||||||
defer terminal.Unlock()
|
|
||||||
|
|
||||||
terminal.SetDirty()
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue