Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Jul 1, 2019
1 parent e83a9f4 commit 86de0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ async function getCurrentSelection() {
let [from, _ ] = await doc.buffer.mark("<")
let [to, __ ] = await doc.buffer.mark(">")
let result: string[] = []
for(let i = from - 1; i < to; ++i)
for(let i = from; i <= to; ++i)
{
result.push(doc.getline(i))
result.push(doc.getline(i - 1))
}
return result
}
Expand Down

0 comments on commit 86de0e8

Please sign in to comment.