Compare commits
3 Commits
6622ea0e1c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
b766c9ef20
|
|||
|
6868bde5e6
|
|||
|
d3a046d85d
|
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2024, Přemysl Eric Janouch <p@janouch.name>
|
Copyright (c) 2024 - 2025, Přemysl Eric Janouch <p@janouch.name>
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted.
|
purpose with or without fee is hereby granted.
|
||||||
|
|||||||
3
acid.go
3
acid.go
@@ -1751,8 +1751,11 @@ func dbOpen(path string) error {
|
|||||||
`task`, `duration`, `INTEGER NOT NULL DEFAULT 0`); err != nil {
|
`task`, `duration`, `INTEGER NOT NULL DEFAULT 0`); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
fallthrough
|
||||||
case 2:
|
case 2:
|
||||||
// The next migration goes here, remember to increment the number below.
|
// The next migration goes here, remember to increment the number below.
|
||||||
|
default:
|
||||||
|
return fmt.Errorf("unsupported database version: %d", version)
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err = tx.Exec(
|
if _, err = tx.Exec(
|
||||||
|
|||||||
@@ -210,11 +210,13 @@ func (tw *terminalWriter) processParsedCSI(
|
|||||||
if len(params) == 0 {
|
if len(params) == 0 {
|
||||||
tw.line = tw.lineTop
|
tw.line = tw.lineTop
|
||||||
tw.column = 0
|
tw.column = 0
|
||||||
} else if len(params) >= 2 && params[0] != 0 && params[1] != 0 {
|
} else if len(params) < 2 || params[0] <= 0 || params[1] <= 0 {
|
||||||
|
return false
|
||||||
|
} else if params[0] >= 32766 && params[1] >= 32766 {
|
||||||
|
// Ignore attempts to scan terminal bounds.
|
||||||
|
} else {
|
||||||
tw.line = tw.lineTop + params[0] - 1
|
tw.line = tw.lineTop + params[0] - 1
|
||||||
tw.column = params[1] - 1
|
tw.column = params[1] - 1
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
case final == 'J': // Erase in Display
|
case final == 'J': // Erase in Display
|
||||||
|
|||||||
Reference in New Issue
Block a user