summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-27 14:22:21 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 13:59:38 +0200
commit7f8d5c1fd0808e7151f5465ede8a5548f05b2f6f (patch)
treec0714c9e97d921a7bb7565a3f2a11fc063fcf3f1 /src/normal.cc
parent93dd1ff3c7008c82b3db1263de5548c3f3b48f57 (diff)
Remove Range::content
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 3506e4fa..f09900db 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -135,7 +135,8 @@ void goto_commands(Context& context)
}
case 'f':
{
- String filename = context.editor().main_selection().content();
+ const Range& sel = context.editor().main_selection();
+ String filename = context.buffer().string(sel.min(), utf8::next(sel.max()));
static constexpr char forbidden[] = { '\'', '\\', '\0' };
for (auto c : forbidden)
if (contains(filename, c))