Monday, February 17, 2020

Null pointer in a string ^@ popup


I am trying to show a string with null pointers in a popup, I know if you write it to a buffer first with put or if if I echo the string the new lines(null pointers) are shown properly. Is there a way to show the text formatted correctly without writing it to a buffer first?

let winid = popup_create(lines, #{
        \ filter: function('s:popup_filter'),
        \ pos: 'botleft',
        \ line: 'cursor-1',
        \ col: 'cursor',
        \ moved: 'WORD',
        \ firstline: 1,
        \ scrollbar: 1,
        \ close: 'button',
        \ minwidth: 70,
        \ maxwidth: 70,
        \ minheight: 20,
        \ maxheight: 20,
        \ mapping: 0,
        \ })

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f91dae8c-7bb3-4de3-9ae9-d1711570b992%40googlegroups.com.

No comments: