Brackets pair highlight toggle state lost

Solved bugs are moved into this topic...
John
Posts: 7
Joined: 03.05.2017 15:56

Brackets pair highlight toggle state lost

Post by John »

When switching between tabs, the brackets pair highlight toggle state is lost. Not sure if this is intentional but looks like a bug to me.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Cannot reproduce. what is "toggle state"? value of option "bracket_highlight" doesn't change.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Maybe make a video (e.g. Kazam program).
John
Posts: 7
Joined: 03.05.2017 15:56

Post by John »

I can reproduce like this:
  • Have multiple tabs/documents open
  • Focus on one tab
  • Command Palette... -> brackets: pair highlight: toggle
  • Now bracket pairs are highlighted when I move caret to a bracket
  • Switch focus to another tab and then back to the original tab
  • Bracket pairs are no longer highlighted
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

These steps: cannot reproduce too. toggle in 1st tab still works on return to 1st tab.
do you see it on CLEAN Cud w/o plugins?
John
Posts: 7
Joined: 03.05.2017 15:56

Post by John »

Yes, this happens with a clean cudatext-win-x64-1.108.0.0.zip
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I did this (linux+win versions)

- start Cud, no tabs opened
- in 1st tab, enter ( )
- new tab, enter [ ]
- ctrl+tab to 1st tab, "brackets pair highlight toggle", brackets hilited
- ctrl+tab to 2nd tab, brackets not hilited
- ctrl+tab to 1st, brackets hilited - all ok
John
Posts: 7
Joined: 03.05.2017 15:56

Post by John »

Yes, that works.

But not with the following code. I create two .py files with the same content from below, open cudatext, open the files and then repeat the procedure and it fails.

Code: Select all

import hello1
import hello2 as h2
import sys
import datetime

from time import sleep

data = read_data('my data.txt')
data = data[['f1','f2']] 
data['a'] = 3
data['b'] = 56
data['c'] = [4,5,6]
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

now I have repeated it. tks.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Thanks; fixed, will be fixed in next update.
Post Reply