ui: rename ops to have Op suffixed, not prefixed

Match Go's FooError name pattern.

While we're here, rename RedrawOp to InvalidateOp.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-21 16:59:26 +02:00
parent b981ccf9ed
commit 7aa7bb3be4
21 changed files with 122 additions and 122 deletions
+2 -2
View File
@@ -161,8 +161,8 @@ func collectRedraws(r *ui.OpsReader) (time.Time, bool) {
break
}
switch ops.OpType(encOp.Data[0]) {
case ops.TypeRedraw:
var op ui.OpRedraw
case ops.TypeInvalidate:
var op ui.InvalidateOp
op.Decode(encOp.Data)
if !redraw || op.At.Before(t) {
redraw = true