From 703087028d284cfbcb17e05a889a06b77e7bf6e4 Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Mon, 28 Jan 2019 09:18:15 -0800 Subject: [PATCH 1/2] Fix copy from readonly code --- news/2 Fixes/4168.md | 1 + src/datascience-ui/history-react/code.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/2 Fixes/4168.md diff --git a/news/2 Fixes/4168.md b/news/2 Fixes/4168.md new file mode 100644 index 000000000000..521375523577 --- /dev/null +++ b/news/2 Fixes/4168.md @@ -0,0 +1 @@ +Fix ctrl+c to work in code that has already been entered diff --git a/src/datascience-ui/history-react/code.tsx b/src/datascience-ui/history-react/code.tsx index a93f5ba44635..a0a4b14423b6 100644 --- a/src/datascience-ui/history-react/code.tsx +++ b/src/datascience-ui/history-react/code.tsx @@ -90,7 +90,7 @@ export class Code extends React.Component { theme: `${this.props.codeTheme} default`, mode: 'python', cursorBlinkRate: -1, - readOnly: readOnly ? 'nocursor' : false, + readOnly: readOnly ? true : false, lineWrapping: true } } From 3fef099936e66b54eb8edd1b6655ea1008a1b383 Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Mon, 28 Jan 2019 10:02:49 -0800 Subject: [PATCH 2/2] Fix xmp text --- src/datascience-ui/history-react/cell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datascience-ui/history-react/cell.tsx b/src/datascience-ui/history-react/cell.tsx index 01e4e496728b..c54fd43170d4 100644 --- a/src/datascience-ui/history-react/cell.tsx +++ b/src/datascience-ui/history-react/cell.tsx @@ -347,7 +347,7 @@ export class Cell extends React.Component { // Output may have goofy ascii colorization chars in it. Try // colorizing if we don't have html that needs around it (ex. <type ='string'>) try { - if (formatted.includes('<')) { + if (!formatted.includes('<')) { const converter = new ansiToHtml(); const html = converter.toHtml(formatted); copy.data = {