Artawower / turbo-log

Fast log message inserting for quick debug.
79 stars 5 forks source link

line number issue #4

Closed teddy-ma closed 3 years ago

teddy-ma commented 3 years ago

When there is a return keyword, the log is insert above, but the line number is not correct.

It seems you only check bolp in turbo-log--get-current-line-number, maybe the implementation should depend on turbo-log--xxx-find-insert-pos. These functions are fully tested and can return the correct line number.

https://user-images.githubusercontent.com/788486/135809268-d3f5ee48-6723-47eb-9e32-f1644f6482ca.mov

Artawower commented 3 years ago

Hello, thanks for the report! You are absolutely right! Fixed in last commit. 😊