Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
78
Issues
78
List
Boards
Labels
Milestones
Merge Requests
31
Merge Requests
31
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
cdcb4b0d
Commit
cdcb4b0d
authored
Feb 18, 2019
by
Florian Münchbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[syntax_highlight] Clean up tag variables
parent
337522dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
syntax_highlight/chat_syntax_highlighter.py
syntax_highlight/chat_syntax_highlighter.py
+3
-4
No files found.
syntax_highlight/chat_syntax_highlighter.py
View file @
cdcb4b0d
...
...
@@ -237,10 +237,9 @@ class ChatSyntaxHighlighter:
else
:
buf
.
insert
(
start_iter
,
insert_text
)
start_iter
=
buf
.
get_iter_at_mark
(
start_mark
)
tag_start
=
start_iter
tag_start
=
buf
.
get_iter_at_mark
(
start_mark
)
tag_end
=
buf
.
get_iter_at_mark
(
end_mark
)
s_code
=
start_iter
.
copy
()
s_code
=
tag_start
.
copy
()
e_code
=
tag_end
.
copy
()
s_code
.
forward_chars
(
marker
[
0
])
e_code
.
backward_chars
(
marker
[
1
])
...
...
@@ -258,7 +257,7 @@ class ChatSyntaxHighlighter:
tag
.
set_property
(
'paragraph-background'
,
self
.
config
.
get_bgcolor
())
tag
.
set_property
(
'font'
,
self
.
config
.
get_font
())
buf
.
get_tag_table
()
.
add
(
tag
)
buf
.
apply_tag
(
tag
,
start_iter
,
tag_end
)
buf
.
apply_tag
(
tag
,
tag_start
,
tag_end
)
def
__init__
(
self
,
config
,
textview
):
self
.
last_end_mark
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment