Null pointer in a string ^@ popup

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Null pointer in a string ^@ popup

Tatenda Biti

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f91dae8c-7bb3-4de3-9ae9-d1711570b992%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Null pointer in a string ^@ popup

Tatenda Biti
Solved: lines->split('\n')

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/bbdb218b-1e0c-42d5-85ca-8fa1640aa354%40googlegroups.com.