From 4d33742482400b67c75479155049c16a4ac3070b Mon Sep 17 00:00:00 2001 From: kernelsmith Date: Tue, 15 Jan 2013 17:35:57 -0600 Subject: [PATCH] fixed bug with -A --- lib/msf/ui/console/command_dispatcher/core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index 4a624f1c6b..1d96bd52da 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -2462,7 +2462,7 @@ class Core args.shift(2) when "-B" # also return arg lines before a match - output_mods[:before] = (val.to_i * -1) + output_mods[:before] = val.to_i # delete opt and val from args list args.shift(2) when "-v" @@ -3037,7 +3037,7 @@ protected before = before.to_i.abs start = line_num - before start = 0 if start < 0 - finish = line_num + before + finish = line_num + after return all_lines.slice(start..finish) end end