martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.25k stars 258 forks source link

color flash upon startup & additional empty char on statusbar #1032

Closed apprehensions closed 1 year ago

apprehensions commented 2 years ago

https://user-images.githubusercontent.com/47404953/183268280-bf93a004-7f02-4033-84bb-29c0b0565060.mp4

MaxGyver83 commented 2 years ago

Are you using an alias? Could you try another terminal emulator? Or another shell?

apprehensions commented 2 years ago

Are you using an alias?

No

Could you try another terminal emulator?

Change: there is an entirely useless bar in stock alacritty settings, also still a blank character: image

Or another shell?

No change.

MaxGyver83 commented 2 years ago

OK, it's strange. Here, it doesn't flicker.

Regarding the "empty char": Do you mean the space next to the 1? I think, it's just padding. There is also one blank next to the line and column number in vim. Or do you mean the black area right to the bar? I think this also some kind of padding. When your window has a width of 170.7 characters, then the terminal uses the space needed for 170 characters and leaves the rest (0.7 character width) black. At least st does it like that.

apprehensions commented 2 years ago

OK, it's strange. Here, it doesn't flicker.

on stock config it occurs, here is my config:

require('vis')

vis.events.subscribe(vis.events.WIN_OPEN, function(win)
        vis:command('set theme base16-gruvbox-dark-hard')
end)

if it matters, i compiled vis with these flags: -O3 -pipe -march=x86-64-v3 -mtune=generic -fno-math-errno -fstack-protector-strong --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2

leorosa commented 2 years ago

Can you check if the flicker also occurs when setting your theme earlier? I.e.

vis.events.subscribe(vis.events.INIT, function()
        vis:command('set theme base16-gruvbox-dark-hard')
end)
apprehensions commented 2 years ago

still occurs:

require('vis')

vis.events.subscribe(vis.events.INIT, function()
        vis:command('set theme base16-gruvbox-dark-hard')
end)
apprehensions commented 2 years ago

is there a way i can get around this? i could probably pull of ignoring this but this really throws off my eyes each time i launch vis.

apprehensions commented 1 year ago

solved in 0.8