mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
'clear' should not reset nextlinenum
This commit is contained in:
parent
9879fe4d11
commit
6bcd37c28e
@ -1495,8 +1495,6 @@ func DeleteScreenLines(ctx context.Context, screenId string) (*ModelUpdate, erro
|
|||||||
tx.Exec(query, screenId)
|
tx.Exec(query, screenId)
|
||||||
query = `UPDATE history SET lineid = '', linenum = 0 WHERE screenid = ?`
|
query = `UPDATE history SET lineid = '', linenum = 0 WHERE screenid = ?`
|
||||||
tx.Exec(query, screenId)
|
tx.Exec(query, screenId)
|
||||||
query = `UPDATE screen SET nextlinenum = 1 WHERE screenid = ?`
|
|
||||||
tx.Exec(query, screenId)
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if txErr != nil {
|
if txErr != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user