# HG changeset patch # User Markus Mützel # Date 1581957440 -3600 # Mon Feb 17 17:37:20 2020 +0100 # Node ID 55dbe40da5ff1e68a061cd559c6f6f40d441c100 # Parent 11072ea6a16c36de13e4cc948fe466d01962dd82 Escape single quote diff -r 11072ea6a16c -r 55dbe40da5ff libgui/src/m-editor/octave-qscintilla.cc --- a/libgui/src/m-editor/octave-qscintilla.cc Sun Feb 16 15:54:45 2020 -0800 +++ b/libgui/src/m-editor/octave-qscintilla.cc Mon Feb 17 17:37:20 2020 +0100 @@ -860,6 +860,7 @@ line_history.replace (QString ("\\"), QString ("\\\\")); line_history.replace (QString ("\""), QString ("\\\"")); line_history.replace (QString ("%"), QString ("%%")); + line_history.replace (QString ("'"), QString ("''")); // Prevent output of breakpoint in temp. file for keyboard QString next_bp_quiet; @@ -867,12 +868,12 @@ if (line.contains ("keyboard")) { // Define commands for not showing bp location and for resetting - // thisin case "keyboard" was within a comment + // this in case "keyboard" was within a comment next_bp_quiet = "__db_next_breakpoint_quiet__;\n"; next_bp_quiet_reset = "__db_next_breakpoint_quiet__(false);\n"; } - // Add codeline togetcher with call to echo/hitory function to tmp + // Add codeline together with call to echo/history function to tmp // %1 : function name for displaying and adding to history // %2 : line number // %3 : command line (eval and display)