You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If no empty line found. move cursor to end of buffer
531
+
// If no empty line was found, move the cursor to the end of the buffer
522
532
ifline==h.Buf.LinesNum() {
523
533
h.Cursor.Loc=h.Buf.End()
524
534
}
535
+
}
536
+
537
+
// ParagraphPrevious moves the cursor to the first empty line that comes before the paragraph closest to the cursor, or beginning of the buffer if there isn't a paragraph
538
+
func (h*BufPane) ParagraphPrevious() bool {
539
+
h.Cursor.Deselect(true)
540
+
h.paragraphPrevious()
541
+
h.Relocate()
542
+
returntrue
543
+
}
544
+
545
+
// ParagraphNext moves the cursor to the first empty line that comes after the paragraph closest to the cursor, or end of the buffer if there isn't a paragraph
546
+
func (h*BufPane) ParagraphNext() bool {
547
+
h.Cursor.Deselect(true)
548
+
h.paragraphNext()
549
+
h.Relocate()
550
+
returntrue
551
+
}
552
+
553
+
// SelectToParagraphPrevious selects to the first empty line that comes before the paragraph closest to the cursor, or beginning of the buffer if there isn't a paragraph
// SelectToParagraphNext selects to the first empty line that comes after the paragraph closest to the cursor, or end of the buffer if there isn't a paragraph
0 commit comments