[gedit/gnome-3-36] externaltools plugin: fix spelling error in env variable
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-36] externaltools plugin: fix spelling error in env variable
- Date: Thu, 19 Mar 2020 19:13:06 +0000 (UTC)
commit d307bd1eca64b3da6ec2e333277822fe706fc7b0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Mar 19 18:42:01 2020 +0100
externaltools plugin: fix spelling error in env variable
Fixes https://gitlab.gnome.org/GNOME/gedit/issues/257
plugins/externaltools/data/send-to-fpaste.tool.in | 2 +-
plugins/externaltools/tools/functions.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/externaltools/data/send-to-fpaste.tool.in
b/plugins/externaltools/data/send-to-fpaste.tool.in
index fb1fdf774..d39217375 100755
--- a/plugins/externaltools/data/send-to-fpaste.tool.in
+++ b/plugins/externaltools/data/send-to-fpaste.tool.in
@@ -5,7 +5,7 @@ from gi.repository import Gtk, Gdk
text = sys.stdin.read()
-lang = os.getenv('GEDIT_CURRRENT_DOCUMENT_LANGUAGE')
+lang = os.getenv('GEDIT_CURRENT_DOCUMENT_LANGUAGE')
if lang is None:
lang = "text"
diff --git a/plugins/externaltools/tools/functions.py b/plugins/externaltools/tools/functions.py
index 23f01830f..bc755be8a 100644
--- a/plugins/externaltools/tools/functions.py
+++ b/plugins/externaltools/tools/functions.py
@@ -97,7 +97,7 @@ def run_external_tool(window, panel, node):
capture.set_env(GEDIT_CURRENT_LINE=piter.get_text(end))
if document.get_language() is not None:
- capture.set_env(GEDIT_CURRRENT_DOCUMENT_LANGUAGE=document.get_language().get_id())
+ capture.set_env(GEDIT_CURRENT_DOCUMENT_LANGUAGE=document.get_language().get_id())
# Selected text (only if input is not selection)
if node.input != 'selection' and node.input != 'selection-document':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]