Yes, history-search-backward
looks only for lines beginning with the first word of the current command line. This is neither a shortcoming nor a bug, but intentional.
For your use-case you want to use the widget history-beginning-search-backward
instead. This searches the history based on everything from the beginning up to the cursor position. (This is the equivalent to the bash's history-search-backward
command)