From 144d5828d25b4e19102c5019b2eded1d61f883ff Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 4 Nov 2016 22:28:18 +0100 Subject: [PATCH] just calculate if hilight is on --- src/fenrir/screenDriver/linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir/screenDriver/linux.py b/src/fenrir/screenDriver/linux.py index 4c480412..c25016a7 100644 --- a/src/fenrir/screenDriver/linux.py +++ b/src/fenrir/screenDriver/linux.py @@ -151,6 +151,6 @@ class driver(): # track highlighted if self.env['screenData']['oldContentAttrib'] != self.env['screenData']['newContentAttrib']: - self.env['screenData']['newAttribDelta'], currCursor = screen_utils.trackHighlights(self.env['screenData']['oldContentAttrib'], self.env['screenData']['newContentAttrib'], self.env['screenData']['newContentText'], self.env['screenData']['columns']) - print('drin',self.env['screenData']['newAttribDelta']) + if not self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'highlight'): + self.env['screenData']['newAttribDelta'], currCursor = screen_utils.trackHighlights(self.env['screenData']['oldContentAttrib'], self.env['screenData']['newContentAttrib'], self.env['screenData']['newContentText'], self.env['screenData']['columns'])