jarun / buku

:bookmark: Personal mini-web in text
GNU General Public License v3.0
6.52k stars 294 forks source link

-n to index from end is broken #783

Closed yigitsever closed 1 month ago

yigitsever commented 2 months ago

Hello,

Using negative indices to index from the end is broken with commit a4c5de955b1157a83404d04b0830e346e6ce842b, tested and verified with git bisect:

Current behaviour:

$ buku -p -1                                                                                                      
[ERROR] No matching index [-1]

Expected behaviour:

$ buku -p -1 
1542. GitHub - jarun/buku: :bookmark: Personal mini-web in text
   > https://github.com/jarun/buku/
   + :bookmark: Personal mini-web in text. Contribute to jarun/buku development by creating an account on GitHub.
   # tool
jarun commented 1 month ago

@LeXofLeviafan please have a look.