From 1576a41f34d966563fed32ff385ce57cd18dd83d Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 3 Oct 2016 19:48:11 +0200 Subject: [PATCH] ignore fenrir for spellcheck --- src/fenrir-package/commands/onInput/62000-spell_check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/commands/onInput/62000-spell_check.py b/src/fenrir-package/commands/onInput/62000-spell_check.py index fc29c1e5..72c7fe7c 100644 --- a/src/fenrir-package/commands/onInput/62000-spell_check.py +++ b/src/fenrir-package/commands/onInput/62000-spell_check.py @@ -71,12 +71,16 @@ class command(): if not(newContent[self.env['screenData']['newCursor']['x']].isspace() and x != self.env['screenData']['newCursor']['x']): return - # ignore bash buildins and empty + # ignore empty if currWord[0] =='': return + # ignore bash buildins if currWord in ['cd','fg','bg','alias','bind','dir','caller','buildin','command','declare','echo','enable','help','let','local','logout',\ 'mapfile','printf','read','readarray','source','type','typeset','ulimit','unalias']: return + # ignore the application name + if currWord.upper() == 'FENRIR': + return if currWord[0] =='-': return if currWord[0] == '/':