changed: grep defaults selection
This commit is contained in:
parent
ac43ce031a
commit
27f77603ae
2
main.js
2
main.js
|
@ -1691,7 +1691,7 @@ function showgrepresult(needle, grepresult)
|
||||||
|
|
||||||
function showgrep()
|
function showgrep()
|
||||||
{
|
{
|
||||||
var text = prompt("Search:");
|
var text = prompt("Search:", md.selectionEnd > md.selectionStart ? md.value.substr(md.selectionStart, md.selectionEnd - md.selectionStart).trim() : "");
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
showgrepresult(text, grep(text));
|
showgrepresult(text, grep(text));
|
||||||
|
|
Loading…
Reference in New Issue