-2

I wrote this colorpicker vim plugin hosted in this repo. It works as in intended in gvim (open dialog with and input the color). But when I run vim in a terminal, the gtk window hangs after clicking the ok or cancel buttons (although it inserts the selected color)... no error messages in vim.

Do any of you have encountered this problem? have you been able to solve it?

  • So, what's your particular question? Or do your expect us to investigate and fix the problem for you?! – Ingo Karkat Nov 29 '13 at 08:21
  • There is no problem with the code itself, it works correctly under gvim. I expected some insight into the workings of terminal vim and python vs. gvim and python. – Abimael Martinez Dec 03 '13 at 23:35

1 Answers1

0

I think you should avoid to open any GUI dialog from vim.

But... try gtk.quit() after destroying dialog because color_dlg.destroy() do not to terminate gtk thread.

Alex Kroll
  • 481
  • 5
  • 15
  • by "avoid opening a GUI dialog from vim", do you mean, "avoid opening a GUI dialog from terminal vim"? I never created a gtk "main" or "main loop" there is no "gtk.quit()" – Abimael Martinez Dec 03 '13 at 23:26
  • "avoid opening a GUI dialog from terminal vim". Exactly! "I never created a gtk "main" or "main loop" there is no "gtk.quit()" you are right. – Alex Kroll Dec 04 '13 at 09:53