summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2019-12-07 15:50:32 -0500
committerPeter LaFosse <peter@vector35.com>2019-12-09 11:49:36 -0500
commit80aab3efa1ffcf9c3727830cf21fd141df0f2c6d (patch)
treef170163bf01ae3f971bc4fbe893d99382ad26adb /python
parentcdf2af17910055d11a8f742294cefd9cd0301b41 (diff)
Fixes #1413 write_at_cursor api issue
Diffstat (limited to 'python')
-rw-r--r--python/scriptingprovider.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py
index b9969dd2..dfd87d63 100644
--- a/python/scriptingprovider.py
+++ b/python/scriptingprovider.py
@@ -640,7 +640,6 @@ class PythonScriptingInstance(ScriptingInstance):
if self.active_view is None:
return 0
selected_length = self.active_selection_end - self.active_selection_begin
- data = str(data)
if (len(data) == selected_length) or (selected_length == 0):
return self.active_view.write(self.active_selection_begin, data)
else: