• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neovim / neovim / 24808
77%

Build:
DEFAULT BRANCH: master
Ran 02 Dec 2017 04:03PM UTC
Jobs 1
Files 685
Run time 25s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
24808

push

travis-ci

justinmk
tui.c: request focus-reporting (fix regression) #7670

ref #7649
ref #7664

27f9b1c7b029d8 caused a regression: it uses loop_schedule_deferred() to
defer emitting the "enable focus reporting" termcode. tui_main() never
processes `tui_loop.events` (which loop_schedule_deferred() depends on),
so the event was never actually processed.

But fixing that (by processing `tui_loop.events`) would bring back the
problem 27f9b1c7b029 tried to fix: it still emits the event too soon.

Instead, do a little dance: schedule the event on `main_loop` and then
forward it to `tui_loop`.

NOTE: after this commit, in tmux 2.3 with `focus-events` enabled,
FocusGained is fired on startup and when resuming from suspend.

Using `script` to record the terminal session (and `vterm-dump` to
post-process the result):

BEFORE:
    {DECSM 1049}{DECSM 1}{ESC =}
    {CUP *}{ED *}{DECSM 2004}{DECSM 1004}{CSI 1,43 r}
    {CUP 1,1}
    {CUP *}{ED *}{SM 34}{DECSM 25}
    {DECRM 25}{CSI 2   q}{CSI 2   q}
    {CUP *}{ED *}{LF}
    {SGR *}{LS1}{SGR 94}~
    ...

AFTER:
    {CUP *}{ED *}{CSI 1,43 r}
    {CUP 1,1}
    {CUP *}{ED *}{SM 34}{DECSM 25}
    {DECRM 25}{CSI 2   q}{CSI 2   q}
    {CUP *}{ED *}{DECSM 2004}{DECSM 1004}{LF}
    {SGR *}{LS1}{SGR 94}~
    ...

7 of 7 new or added lines in 1 file covered. (100.0%)

87964 of 113667 relevant lines covered (77.39%)

176355.25 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/nvim/event/process.c
5
100.0
src/nvim/msgpack_rpc/channel.c
6
100.0
src/nvim/terminal.c
11
100.0
src/nvim/edit.c
13
100.0
src/nvim/screen.c
Jobs
ID Job ID Ran Files Coverage
7 24808.7 (GCOV=gcov-5 CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON") 02 Dec 2017 04:03PM UTC 0
77.39
Travis Job 24808.7
Source Files on build 24808
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #24808
  • 4b83f379 on github
  • Prev Build on master (#24773)
  • Next Build on master (#24854)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc