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.
When there is a return keyword, the log is insert above, but the line number is not correct.
It seems you only check
bolp
inturbo-log--get-current-line-number
, maybe the implementation should depend onturbo-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