sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
353 stars 40 forks source link

vim API: global XKeyboard variable my throw #4

Closed lyokha closed 11 years ago

lyokha commented 11 years ago

global XKeyboard variable xkb will throw uncatchable exception if X is not available. This will make vim SIGSEGV: see this issue: http://github.com/lyokha/vim-xkbswitch/issues/5. In this commit a wrapper class was introduced that will catch exceptions from XKeyboard()

ierton commented 11 years ago

Merged, thanks!