Skip to content

Commit

Permalink
comment plg: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed May 29, 2024
1 parent f2ec72c commit b68336f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ def cmt_toggle_stream(self):
if ed.get_sel_mode() != app.SEL_NORMAL:
return app.msg_status(f(_('{} works only with normal selection'), _('Commenting')))
lex = ed.get_prop(app.PROP_LEXER_CARET)
((bgn_sgn
,end_sgn)
,bOnlyLn)=self._get_cmt_pair(lex)
if not lex:
return app.msg_status(_('Commenting requires an active lexer'))
((bgn_sgn, end_sgn), bOnlyLn) = self._get_cmt_pair(lex)
if not bgn_sgn:
return app.msg_status(f(_('No stream comment for lexer "{}"'), lex))
crts = ed.get_carets()
Expand Down
6 changes: 3 additions & 3 deletions app/py/cuda_comments/cd_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ def cmt_toggle_stream(self):
if ed.get_sel_mode() != app.SEL_NORMAL:
return app.msg_status(f(_('{} works only with normal selection'), _('Commenting')))
lex = ed.get_prop(app.PROP_LEXER_CARET)
((bgn_sgn
,end_sgn)
,bOnlyLn)=self._get_cmt_pair(lex)
if not lex:
return app.msg_status(_('Commenting requires an active lexer'))
((bgn_sgn, end_sgn), bOnlyLn) = self._get_cmt_pair(lex)
if not bgn_sgn:
return app.msg_status(f(_('No stream comment for lexer "{}"'), lex))
crts = ed.get_carets()
Expand Down

0 comments on commit b68336f

Please sign in to comment.