Fossil SCM

Actually use pEditHead

andygoth 2020-08-21 19:42 andygoth-forum-refactor
Commit 9e92401129c107ae47018c4b3b7247f5a7017a34a4f7d166e12a5db5dd5e2111
1 file changed +1 -1
+1 -1
--- src/forum.c
+++ src/forum.c
@@ -643,11 +643,11 @@
643643
int iIndentScale = 4;
644644
645645
pThread = forumthread_create(froot, 1);
646646
for(p=pThread->pFirst; p; p=p->pNext){
647647
if( p->fpid==target ){
648
- while( p->pEditPrev ) p = p->pEditPrev;
648
+ if( p->pEditHead ) p = p->pEditHead;
649649
target = p->fpid;
650650
break;
651651
}
652652
}
653653
while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){
654654
--- src/forum.c
+++ src/forum.c
@@ -643,11 +643,11 @@
643 int iIndentScale = 4;
644
645 pThread = forumthread_create(froot, 1);
646 for(p=pThread->pFirst; p; p=p->pNext){
647 if( p->fpid==target ){
648 while( p->pEditPrev ) p = p->pEditPrev;
649 target = p->fpid;
650 break;
651 }
652 }
653 while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){
654
--- src/forum.c
+++ src/forum.c
@@ -643,11 +643,11 @@
643 int iIndentScale = 4;
644
645 pThread = forumthread_create(froot, 1);
646 for(p=pThread->pFirst; p; p=p->pNext){
647 if( p->fpid==target ){
648 if( p->pEditHead ) p = p->pEditHead;
649 target = p->fpid;
650 break;
651 }
652 }
653 while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){
654

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button