diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ed5777f..cf43b10 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - julia-version: ['1.7', '1.8', '1.9', '1.10', '1.11'] + julia-version: ['1.10', '1.11.0', '1.11.1', '1.11.2', '1.11.3'] julia-arch: [x64] os: [ubuntu-latest, windows-latest, macOS-latest] diff --git a/src/buffer.jl b/src/buffer.jl index 5353447..f72fc5a 100644 --- a/src/buffer.jl +++ b/src/buffer.jl @@ -29,6 +29,7 @@ VimMode(vm::VimMode) = vm Defaults to normal mode. """ function testbuf(s::AbstractString)::VimBuffer + # issue with testbuf! m = match(r"(.*?)\|(?:([ni])\|)?(.*)"s, s) if m === nothing throw(ArgumentError("could not construct VimBuffer with string \"$s\"\n Expecting a string with a pipe `|` indicating cursor position")) @@ -37,6 +38,7 @@ function testbuf(s::AbstractString)::VimBuffer buf = IOBuffer(; read=true, write=true, append=true) cursor_index = write(buf, a) after_cursor = write(buf, b) + @debug "creating testbuf" from=s start=a mode endd=b # @debug "creating testbuf" cursor_index after_cursor seek(buf, cursor_index) diff --git a/src/textutils.jl b/src/textutils.jl index cc3b6b1..e492989 100644 --- a/src/textutils.jl +++ b/src/textutils.jl @@ -204,11 +204,11 @@ function at_junction_type(junc_type, juncs::Set) # TODO nuke this whole thing for junc in juncs if junc isa junc_type - @debug "at_junction_type?" junc_type chars_by_cursor(buf) at_junction_type = true + # @debug "at_junction_type?" junc_type at_junction_type = true return true end end - @debug "at_junction_type?" junc_type chars_by_cursor(buf) at_junction_type = false + # @debug "at_junction_type?" junc_type at_junction_type = false return false end # Text helpers diff --git a/test/command.jl b/test/command.jl index f7b20e7..882396b 100644 --- a/test/command.jl +++ b/test/command.jl @@ -16,11 +16,13 @@ end function run(test_string::String, command)::VimBuffer buf = testbuf(test_string) + @debug "Running command against buffer" command buffer return run(buf, command) end # https://github.com/caleb-allen/VimBindings.jl/issues?q=is%3Aissue+is%3Aopen+label%3Abug @testset "bugs from github" begin + ENV["JULIA_DEBUG"] = "VimBindings" # https://github.com/caleb-allen/VimBindings.jl/issues/48 @test run("b::|Float64", "ciw") == testbuf("b::|i|")