From 6bcd37c28eccf0175c4b2eb032f15de9742599ae Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 23 Jan 2024 09:54:16 -0800 Subject: [PATCH] 'clear' should not reset nextlinenum --- wavesrv/pkg/sstore/dbops.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/wavesrv/pkg/sstore/dbops.go b/wavesrv/pkg/sstore/dbops.go index 4186edcf8..cdef6b921 100644 --- a/wavesrv/pkg/sstore/dbops.go +++ b/wavesrv/pkg/sstore/dbops.go @@ -1495,8 +1495,6 @@ func DeleteScreenLines(ctx context.Context, screenId string) (*ModelUpdate, erro tx.Exec(query, screenId) query = `UPDATE history SET lineid = '', linenum = 0 WHERE screenid = ?` tx.Exec(query, screenId) - query = `UPDATE screen SET nextlinenum = 1 WHERE screenid = ?` - tx.Exec(query, screenId) return nil }) if txErr != nil {