diff --git a/docs/en_US/release_notes_8_12.rst b/docs/en_US/release_notes_8_12.rst index d758ac765..f027c462e 100644 --- a/docs/en_US/release_notes_8_12.rst +++ b/docs/en_US/release_notes_8_12.rst @@ -20,6 +20,7 @@ Bundled PostgreSQL Utilities New features ************ + | `Issue #7293 `_ - Allow running non-continuous selected SQL code blocks in the query tool. Housekeeping ************ @@ -28,4 +29,4 @@ Housekeeping Bug fixes ********* - | `Issue #7076 `_ - Revamp the current password saving implementation to a keyring and reduce repeated OS user password prompts. \ No newline at end of file + | `Issue #7076 `_ - Revamp the current password saving implementation to a keyring and reduce repeated OS user password prompts. \ No newline at end of file diff --git a/web/pgadmin/static/js/components/ReactCodeMirror/CustomEditorView.js b/web/pgadmin/static/js/components/ReactCodeMirror/CustomEditorView.js index a7c0c22d5..6801b44a7 100644 --- a/web/pgadmin/static/js/components/ReactCodeMirror/CustomEditorView.js +++ b/web/pgadmin/static/js/components/ReactCodeMirror/CustomEditorView.js @@ -197,7 +197,7 @@ export default class CustomEditorView extends EditorView { } getSelection() { - return this.state.sliceDoc(this.state.selection.main.from, this.state.selection.main.to) ?? ''; + return this.state.selection.ranges.map((range)=>this.state.sliceDoc(range.from, range.to)).join('') ?? ''; } replaceSelection(newValue) {