Skip to content

Commit 9e6c780

Browse files
author
batlab
committed
Get piped data even with multiline list of params
1 parent ad506a1 commit 9e6c780

File tree

1 file changed

+2
-2
lines changed
  • pythonx/cm_sources

1 file changed

+2
-2
lines changed

pythonx/cm_sources/r.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def get_pipe(buff, numline, numcol):
4949
if numl == numline-1:
5050
# If line is where the cursor is currently at
5151
line = line[0:numcol]
52-
r_pipeline = re.compile(r'(%>%|\)\s?\+)')
52+
r_pipeline = re.compile(r'%>%')
5353
else:
54-
r_pipeline = re.compile(r'(%>%|\)\s?\+)\s*$')
54+
r_pipeline = re.compile(r'(%>%|\)\s?\+|,)\s*$')
5555

5656
if r_pipeline.search(line):
5757
# If line clearly continues data pipeline

0 commit comments

Comments
 (0)