Slight refactor for improved readability. Also added example of load_extension in default conf.
This commit is contained in:
parent
f9c1016f26
commit
617c0fa7cc
|
@ -1524,3 +1524,6 @@ lang.lua.indent.ignore ^(.+:|\s*?)$
|
|||
|
||||
# Uncomment this line if your terminal supports 256 colours.
|
||||
#include ~/.diakonos/diakonos-256-colour.conf
|
||||
|
||||
# Load extensions like this, specifying the extension directory (relative to ~/.diakonos/extensions)
|
||||
#load_extension dk-git
|
||||
|
|
|
@ -266,7 +266,9 @@ module Diakonos
|
|||
|
||||
Thread.new do
|
||||
|
||||
if $diakonos.display_mutex.try_lock
|
||||
if ! $diakonos.display_mutex.try_lock
|
||||
$diakonos.display_enqueue( self )
|
||||
else
|
||||
begin
|
||||
Curses::curs_set 0
|
||||
|
||||
|
@ -360,8 +362,6 @@ module Diakonos
|
|||
|
||||
$diakonos.display_mutex.unlock
|
||||
$diakonos.display_dequeue
|
||||
else
|
||||
$diakonos.display_enqueue( self )
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue