Skip to content

Commit 0431d6d

Browse files
committed
fix empty regions
1 parent d107a0e commit 0431d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cs_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def run(self, regions = None, print_quota = None, transform = None, expand = Fal
296296
if expand:
297297
on_finish = lambda _: view.run_command("clojure_sublimed_toggle_info", {})
298298

299-
regions = [sublime.Region(a, b) for (a, b) in regions]
299+
regions = [sublime.Region(a, b) for (a, b) in regions or []]
300300
state.conn.eval(view, regions or view.sel(), transform_fn = transform_fn, print_quota = print_quota, on_finish = on_finish)
301301

302302
def is_enabled(self):

0 commit comments

Comments
 (0)