From aee2704e940cec8fd23f06bd06c992c6675f102a Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 26 Mar 2017 22:34:33 +0200 Subject: [PATCH] hack around double spoken --- .../55000-present_line_if_cursor_change_vertical.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrir/commands/onInput/55000-present_line_if_cursor_change_vertical.py b/src/fenrir/commands/onInput/55000-present_line_if_cursor_change_vertical.py index 5fc81cee..583d0897 100644 --- a/src/fenrir/commands/onInput/55000-present_line_if_cursor_change_vertical.py +++ b/src/fenrir/commands/onInput/55000-present_line_if_cursor_change_vertical.py @@ -24,9 +24,10 @@ class command(): return if self.env['runtime']['screenManager'].isScreenChange(): return - # this leads to problems in vim -> status line change -> no announcement - #if self.env['runtime']['screenManager'].isDelta(): - # return + # this leads to problems in vim -> status line change -> no announcement, so we do check the lengh as hack + if self.env['runtime']['screenManager'].isDelta(): + if len(self.env['screenData']['newDelta']) > 4: + return # is a vertical change? if not self.env['runtime']['cursorManager'].isCursorVerticalMove():