Not a bug. That is just how search in Sigil is designed.
Cursors determine search start points but a search can end up someplace else resetting the cursor. For example: If you search the current file and found what you were searching for later in the same file, the cursor position would change to where you found it.
If you tell it to search all xhtml files, it will cycle through each file starting at the top of each file (or bottom if direction is set to up) ignoring the current cursor if one exists as the starting point. That includes the top of the current file (before your cursor) if it is an xhtml file.
You can set a bookmark before any search (see the find replace menu) if you want to quickly return to where you started, by using the back button.
If you search in the current file up or down and nothing is found, the cursor remains unchanged.
Last edited by KevinH; 11-14-2022 at 12:26 PM.
|