XVim icon indicating copy to clipboard operation
XVim copied to clipboard

Investigate comparison between pos and index in NSTextStorage+VimOperation.m

Open yixiang opened this issue 9 years ago • 1 comments

In [NSTextStorage xvim_firstOfLine], there is a comparison between pos and index (pos == index).

pos is a position in terms of characters but index is line the line number. It definitely feels wrong to compare them, but I was not able to figure out what the expected behavior is with my time constraints. So I'm going to leave that to those who are more familiar with the code.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

yixiang avatar Oct 05 '16 22:10 yixiang

Isn't index the position in the text to start searching from and pos the position for the start of the same line?

tidbeck avatar Jan 08 '17 10:01 tidbeck