-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cellcolor output incorrect #187
Comments
This is very strange. Will try to reproduce it. |
I think I found the location of the issue, but I'm not sure of the actual cause. Check out the diff below. Here is my test.sc file:
Opening this file and executing
Note that executing I then apply this diff:
If I recompile sc-im and do the same procedure on the original test.sc file I get:
Maybe there is some sort of type issue when int value of the color is decompiled. Specifically, it looks like |
Are you using gcc? |
If not, could you please try building it with another compiler? |
I believe I've been using gcc. I compiled again using I followed the instructions on the Debian install walk through. Here is a diff of my Makefile against what is in the master branch:
|
I dug a little deeper. This diff fixes the issue:
This gives I think the issue is that the background ( To check, I applied this diff:
Then I get the following result in test.sc: |
Open a spreadsheet. Type
:cellcolor A0:Z0 "bold=1
. You will see that line A is in bold white text. Save file. Exit scim. Reopen the file. You will not see any bold text on line A.If you look at the .sc file in a text editor, you will find the following line within the .sc file.
cellcolor A0:Z0 "fg=WHITE bg=ÿ?TE bold=1"
You can edit the .sc file to read ``cellcolor A0:Z0 "fg=WHITE bg=BLACK bold=1"` and then the colors will work correctly.
I am running Bash on Windows, Ubuntu version.
uname -a
givesLinux DESKTOP-7Q4DUMC 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
. Using commit 973e899 from 2017-07-05.The text was updated successfully, but these errors were encountered: