Giter VIP home page Giter VIP logo

Comments (3)

vanaigr avatar vanaigr commented on June 9, 2024

The same issue happens with 20 characters on a 20-cell wide screen:

local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')

before_each(helpers.clear)

describe("echo 19 chars", function()
  it('with screen width = 40', function()
    Screen.new(40, 10):attach()
    helpers.exec([=[echo "1234567890123456789"]=])
  end)
  it('with screen width = 20', function()
    Screen.new(20, 10):attach()
    helpers.exec([=[echo "1234567890123456789"]=])
  end)
end)

describe("echo 20 chars", function()
  it('with screen width = 40', function()
    Screen.new(40, 10):attach()
    helpers.exec([=[echo "12345678901234567890"]=])
  end)
  it('with screen width = 20', function()  -- times out
    Screen.new(20, 10):attach()
    helpers.exec([=[echo "12345678901234567890"]=])
  end)
end)

from neovim.

justinmk avatar justinmk commented on June 9, 2024

It's probably triggering a hit-enter prompt. The usual pattern is to either make the screen sufficiently wide, or use a screen test (which works asynchronously).

This isn't really a bug. Though we do have plans to reduce the frequency of hit-enter prompts in general.

from neovim.

vanaigr avatar vanaigr commented on June 9, 2024

Oh, I completely forgot about this. Now I recall seeing this prompt mentioned on the tests wiki page too. Sorry for the oversight.

from neovim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.