Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E239 triggered "invalid sign text: ~^^" #476

Closed
MarkVasile opened this issue Feb 16, 2021 · 5 comments
Closed

E239 triggered "invalid sign text: ~^^" #476

MarkVasile opened this issue Feb 16, 2021 · 5 comments

Comments

@MarkVasile
Copy link

I had to change the g:signify_sign_delete_first_line to just '-' to avoid getting E239.

let g:signify_sign_delete_first_line = '^^'

@imbible
Copy link

imbible commented Feb 22, 2021

@liuchengxu I confirmed that it is reproducible. It is because of this bug in Signify - mhinz/vim-signify#366 (comment)

@fmcgough
Copy link

I'm also getting this error:

Error detected while processing function <SNR>164_callback_nvim_exit[1]..<SNR>164_handle_diff[31]..sy#sign#set_signs[17]..sy#highlight#line_disable:
line    3:
E239: Invalid sign text: ~^^

@jamessan
Copy link

jamessan commented Mar 7, 2021

Signs can't be more than two columns. The new g:signify_sign_change_delete has a default of g:signify_sign_change . g:signify_sign_delete_first_line, so if the combination of them is more than 2 columns, you will get the E239 error.

This is documented in signify:

                                              *g:signify_sign_add*
                                              *g:signify_sign_delete*
                                              *g:signify_sign_delete_first_line*
                                              *g:signify_sign_change*
                                              *g:signify_sign_change_delete*
>
    let g:signify_sign_add               = '+'
    let g:signify_sign_delete            = '_'
    let g:signify_sign_delete_first_line = '‾'
    let g:signify_sign_change            = '!'
    let g:signify_sign_change_delete     = g:signify_sign_change . g:signify_sign_delete_first_line
<
The sign to use if a line was added, deleted or changed or a combination of
these.

You can use Unicode characters, but signs must not take up more than two
cells. Otherwise, |E239| is thrown.

So either change g:signify_sign_delete_first_line to not be two characters, or set g:signify_sign_change_delete to a specific value.

@liuchengxu
Copy link
Owner

Thanks @jamessan , that's a misuse of space-vim then, it doesn't complain about that earlier though :(.

@jamessan
Copy link

jamessan commented Mar 7, 2021

@liuchengxu You can keep g:signify_sign_delete_first_line = '^^' as long as g:signify_sign_change_delete is explicitly set to some string that is one or two columns, instead of using the default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants