Skip to content

Commit

Permalink
Ensure align uses latest line count
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Aug 9, 2023
1 parent 09263ea commit e0d0614
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Wally:

```toml
[dependencies]
Highlighter = "boatbomber/[email protected].1"
Highlighter = "boatbomber/[email protected].2"
```

Roblox Model:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boatbomber/highlighter",
"version": "0.8.1",
"version": "0.8.2",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function Highlighter._getLabelingInfo(textObject: types.TextObject)
return
end

local numLines = #data.Lines
local src = utility.convertTabsToSpaces(utility.removeControlChars(textObject.Text))
local numLines = #string.split(src, "\n")
if numLines == 0 then
return
end
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "boatbomber/highlighter"
description = "RichText highlighting Lua code with a pure Lua lexer"
version = "0.8.1"
version = "0.8.2"
license = "MIT"
authors = ["boatbomber (https://boatbomber.com)"]
registry = "https://github.com/upliftgames/wally-index"
Expand Down

0 comments on commit e0d0614

Please sign in to comment.