[gedit/zbrown/deteplification-src: 223/633] externaltools plugin: fix spelling error in env variable
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/zbrown/deteplification-src: 223/633] externaltools plugin: fix spelling error in env variable
- Date: Sat, 10 Apr 2021 12:47:58 +0000 (UTC)
commit 13c663a2e09fb2c29cc140a6a800227ac2f6c1c0
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]